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

Bug Fix for Single-layer UCM Green Roof Option #223

Merged
merged 1 commit into from
Mar 31, 2017
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
10 changes: 5 additions & 5 deletions phys/module_sf_urban.F
Original file line number Diff line number Diff line change
Expand Up @@ -1129,14 +1129,12 @@ SUBROUTINE urban(LSOLAR, & ! L
end if
YY = TA + (RGRR / RCH - BETGR * EPGR * ELL/ RCH) / RR2
ZZ1 = DF1 / (-0.5 * ZSOILR (KZ) * RCH * RR2 ) + 1.0
! Update temperature in soil layer
CALL SHFLX (SSOILR,TGRL,SMR,SMCMAX,NGR,TGRP,DELT,YY,ZZ1,ZSOILR, &
TRLEND,ZBOT,SMCWLT,DF1,QUARTZ,CSOIL,CAPR)


HGR=RHO*CP*CHGR*UA*(TGRP-TA)*100.
RUNOFF3 = RUNOFF3/ DELT
RUNOFF2 = RUNOFF2+ RUNOFF3
G0GR = SSOILR / 697.7 / 60
G0GR = DF1*(TGRP-TGRL(1))/(DZGR(1)/2.)/697.7/60

FV = SGR + RGR - HGR - ELEGR - G0GR
DRRDTGR = (-4.*EPSV*SIG*TGRP**3.)/60.
Expand All @@ -1152,7 +1150,9 @@ SUBROUTINE urban(LSOLAR, & ! L
EXIT
ENDIF
END DO

! Update temperature in soil layer
CALL SHFLX (SSOILR,TGRL,SMR,SMCMAX,NGR,TGRP,DELT,YY,ZZ1,ZSOILR, &
TRLEND,ZBOT,SMCWLT,DF1,QUARTZ,CSOIL,CAPR)
FLXTHGR=HGR/RHO/CP/100.
FLXHUMGR=ELEGR/RHO/EL/100.
ELSE
Expand Down