@@ -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,7 +2001,7 @@ subroutine drag_suite_psl( &
20002001!
20012002 do i = its,im
20022003 hmax(i) = max (elvmax(i),zlowtop(i))
2003- hmax (i) = max (hmax(i),hpbl(i))
2004+ href (i) = max (hmax(i),hpbl(i))
20042005 enddo
20052006!
20062007 do i = its,im
@@ -2111,7 +2112,7 @@ subroutine drag_suite_psl( &
21112112!
21122113! no drag when sub-oro is too small..
21132114!
2114- ldrag(i) = hmax (i).le. hmt_min
2115+ ldrag(i) = href (i).le. hmt_min
21152116!
21162117! no drag when critical level in the base layer
21172118!
0 commit comments