Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modify a few terms in vegetation diag3 #64

Merged
merged 1 commit into from
Apr 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions physics/module_sf_noahmplsm.F90
Original file line number Diff line number Diff line change
Expand Up @@ -4339,15 +4339,15 @@ subroutine vege_flux(parameters,nsnow ,nsoil ,isnow ,vegtyp ,veg , &
fhi = fh2/fh
wrk = 1.0 - fhi
if(thsfc_loc) then ! Use local potential temperature
t2mv = tv*wrk + sfctmp*prslkix*fhi - (grav+grav)/cp
t2mv = tah*wrk + sfctmp*prslkix*fhi - (grav+grav)/cp
else ! Use potential temperature referenced to 1000 hPa
t2mv = tv*wrk + sfctmp*fhi - (grav+grav)/cp
t2mv = tah*wrk + sfctmp*fhi - (grav+grav)/cp
endif

if(evg >= 0.) then ! for evaporation>0, use inferred qsurf to deduce q2v
if((evc+tr)/fveg+evg >= 0.) then ! for evaporation>0, use inferred qsurf to deduce q2v
q2v = qsfc*wrk + max(qmin,qair)*fhi
else ! for dew formation, use saturated q at tskin
qss = fpvs(tv)
qss = fpvs(tah)
qss = ep_2 * qss / (psfc + epsm1 * qss)
q2v= qss*wrk + max(qmin,qair)*fhi
endif
Expand Down