Skip to content

Commit 3593b60

Browse files
authored
Merge pull request #931 from GEOS-ESM/hotfix/atrayano/#930_fix_uninit_tep_qp
Fixed uninitialized tep and qp when wstar <= 0.001
2 parents 4e81771 + e93eb34 commit 3593b60

File tree

1 file changed

+2
-1
lines changed
  • GEOSagcm_GridComp/GEOSphysics_GridComp/GEOSturbulence_GridComp

1 file changed

+2
-1
lines changed

GEOSagcm_GridComp/GEOSphysics_GridComp/GEOSturbulence_GridComp/LockEntrain.F90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1265,7 +1265,8 @@ subroutine mpbl_depth(i,j,icol,jcol,nlev,tpfac, entrate, pceff, vscale, pertopt,
12651265
qp = q(i,j,nlev) + 2.*evap(i,j)/(zrho*wstar)
12661266
! print *,'tpert=',2.*sh(i,j)/(zrho*wstar*MAPL_CP)
12671267
else
1268-
1268+
tep = t(i,j,nlev) + 0.4
1269+
qp = q(i,j,nlev)
12691270
end if
12701271
else ! tpfac scales up bstar by inv. ratio of
12711272
! heat-bubble area to stagnant area

0 commit comments

Comments
 (0)