@@ -1731,7 +1731,7 @@ subroutine drag_suite_psl( &
17311731 real (kind= kind_phys),parameter :: odmax = 10 .
17321732 real (kind= kind_phys),parameter :: cdmin = 0.0
17331733 integer :: komax(im),kbmax(im),kblk(im)
1734- real (kind= kind_phys) :: hmax(im)
1734+ real (kind= kind_phys) :: href(im), hmax(im)
17351735 real (kind= kind_phys) :: cd
17361736 real (kind= kind_phys) :: zblk,tautem
17371737 real (kind= kind_phys) :: pe,ke
@@ -1916,6 +1916,7 @@ subroutine drag_suite_psl( &
19161916! initialize array for flow-blocking drag
19171917!
19181918 taufb(1 :im,1 :km+1 ) = 0.0
1919+ href(1 :im) = 0.0
19191920 hmax(1 :im) = 0.0
19201921 komax(1 :im) = 0
19211922 kbmax(1 :im) = 0
@@ -2000,11 +2001,13 @@ subroutine drag_suite_psl( &
20002001!
20012002 do i = its,im
20022003 hmax(i) = max (elvmax(i),zlowtop(i))
2004+ href(i) = max (hmax(i),hpbl(i))
20032005 enddo
20042006!
20052007 do i = its,im
20062008! !! kbl(i) = max(kpbl(i), klowtop(i)) ! do not use pbl height for the time being...
2007- kbl(i) = max (komax(i), klowtop(i))
2009+ kbl(i) = max (komax(i), klowtop(i))
2010+ kbl(i) = max (kbl(i), kpbl(i))
20082011 kbl(i) = max (min (kbl(i),kpblmax),kpblmin)
20092012 enddo
20102013!
@@ -2109,7 +2112,7 @@ subroutine drag_suite_psl( &
21092112!
21102113! no drag when sub-oro is too small..
21112114!
2112- ldrag(i) = hmax (i).le. hmt_min
2115+ ldrag(i) = href (i).le. hmt_min
21132116!
21142117! no drag when critical level in the base layer
21152118!
0 commit comments