@@ -109,25 +109,25 @@ subroutine zengocndrv
109
109
t995 = tatm(i) - tzero
110
110
q995 = qv(i)
111
111
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)))
113
113
rlv = wlh(tsurf)
114
114
cpm = cpd* (d_one- q995) + cpv* q995
115
- zi = max (z995, hpbl(i) )
115
+ zi = hpbl(i)
116
116
hu = z995
117
117
zh = z995
118
118
hq = z995
119
119
! potential T
120
120
th = tsurf* (p00/ sfps(i))** rovcp
121
121
tha = tatm(i)* (p00/ patm(i))** rovcp
122
122
dth = tha - th
123
- qs = pfwsat(tsurf,sfps(i))* 0.98_rkx
123
+ qs = pfwsat(tsurf,sfps(i))* 0.995_rkx
124
124
! in kg/kg
125
125
dqh = q995 - qs
126
126
! virtual potential T
127
127
thv = th* (d_one+ ep1* qs)
128
128
dthv = dth* (d_one+ ep1* q995) + ep1* th* dqh
129
129
! density
130
- xdens = sfps(i)/ (rgas* tatm(i) * (d_one+ ep1* q995 ))
130
+ xdens = sfps(i)/ (rgas* tsurf * (d_one+ ep1* qs ))
131
131
! J/kg
132
132
! Kinematic viscosity of dry air (m2/s)
133
133
! Andreas (1989) CRREL Rep. 89-11
@@ -176,7 +176,7 @@ subroutine zengocndrv
176
176
!
177
177
! loop to obtain initial and good ustar and zo
178
178
!
179
- do nconv = 1 , 2
179
+ do nconv = 1 , 5
180
180
call ocnrough(zo,zot,zoq,ustar,um10(i),wc,visa)
181
181
if ( flag2 ) then
182
182
ustar = vonkar* um/ log (hu/ zo)
@@ -191,7 +191,6 @@ subroutine zengocndrv
191
191
zeta = max (- 100.0_rkx ,min (zeta,- minz))
192
192
end if
193
193
obu = hu/ zeta
194
- wc = ustar * (max (- zi* vonkar/ obu,d_zero))** onet
195
194
!
196
195
! main iterations (2-10 iterations would be fine)
197
196
!
@@ -381,7 +380,7 @@ subroutine zengocndrv
381
380
v10m(i) = vsw(i)* uv10/ uv995
382
381
taux(i) = tau* (usw(i)/ uv995)
383
382
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
385
384
q2m(i) = q995 - dqh* facttq
386
385
rhoa(i) = sfps(i)/ (rgas* t2m(i)* (d_one+ ep1* q2m(i)))
387
386
! We need specific humidity in output
0 commit comments