Skip to content

Commit 74a7a58

Browse files
Merge branch 'master' of github.com:ictp/RegCM
2 parents 322a9ab + 04f40dc commit 74a7a58

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

Main/ocnlib/mod_ocn_zeng.F90

+6-7
Original file line numberDiff line numberDiff line change
@@ -109,25 +109,25 @@ subroutine zengocndrv
109109
t995 = tatm(i) - tzero
110110
q995 = qv(i)
111111
z995 = ht(i)
112-
tsurf = (tgrd(i) + 10.0_rkx/z995 * (tatm(i)-tgrd(i)))
112+
tsurf = (tgrd(i) + 1.0_rkx/z995 * (tatm(i)-tgrd(i)))
113113
rlv = wlh(tsurf)
114114
cpm = cpd*(d_one-q995) + cpv*q995
115-
zi = max(z995,hpbl(i))
115+
zi = hpbl(i)
116116
hu = z995
117117
zh = z995
118118
hq = z995
119119
! potential T
120120
th = tsurf*(p00/sfps(i))**rovcp
121121
tha = tatm(i)*(p00/patm(i))**rovcp
122122
dth = tha - th
123-
qs = pfwsat(tsurf,sfps(i))*0.98_rkx
123+
qs = pfwsat(tsurf,sfps(i))*0.995_rkx
124124
! in kg/kg
125125
dqh = q995 - qs
126126
! virtual potential T
127127
thv = th*(d_one+ep1*qs)
128128
dthv = dth*(d_one+ep1*q995) + ep1*th*dqh
129129
! density
130-
xdens = sfps(i)/(rgas*tatm(i)*(d_one+ep1*q995))
130+
xdens = sfps(i)/(rgas*tsurf*(d_one+ep1*qs))
131131
! J/kg
132132
! Kinematic viscosity of dry air (m2/s)
133133
! Andreas (1989) CRREL Rep. 89-11
@@ -176,7 +176,7 @@ subroutine zengocndrv
176176
!
177177
! loop to obtain initial and good ustar and zo
178178
!
179-
do nconv = 1 , 2
179+
do nconv = 1 , 5
180180
call ocnrough(zo,zot,zoq,ustar,um10(i),wc,visa)
181181
if ( flag2 ) then
182182
ustar = vonkar*um/log(hu/zo)
@@ -191,7 +191,6 @@ subroutine zengocndrv
191191
zeta = max(-100.0_rkx,min(zeta,-minz))
192192
end if
193193
obu = hu/zeta
194-
wc = ustar * (max(-zi*vonkar/obu,d_zero))**onet
195194
!
196195
! main iterations (2-10 iterations would be fine)
197196
!
@@ -381,7 +380,7 @@ subroutine zengocndrv
381380
v10m(i) = vsw(i)*uv10/uv995
382381
taux(i) = tau*(usw(i)/uv995)
383382
tauy(i) = tau*(vsw(i)/uv995)
384-
t2m(i) = t995 + tzero - (dth * (sfps(i)/p00)**rovcp) * facttq
383+
t2m(i) = tatm(i) - (dth * (sfps(i)/p00)**rovcp) * facttq
385384
q2m(i) = q995 - dqh*facttq
386385
rhoa(i) = sfps(i)/(rgas*t2m(i)*(d_one+ep1*q2m(i)))
387386
! We need specific humidity in output

0 commit comments

Comments
 (0)