Skip to content

Commit 3a040e5

Browse files
bug fix: remove double-counting of heat corr (StieglitzSnow.F90)
In the rare circumstance that more snow would need to be sublimated than is available in the top layer, the residual energy accounting term was added twice, once here and again ~30 lines further down.
1 parent 26d5600 commit 3a040e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GEOSagcm_GridComp/GEOSphysics_GridComp/GEOSsurface_GridComp/Shared/StieglitzSnow.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ subroutine StieglitzSnow_snowrt(tile_lon, tile_lat, &
671671
if(-dw > wesn(1) ) then
672672
dw = -wesn(1)
673673
evap = -dw/(dts*areasc)
674-
hcorr=hcorr+(lhflux-evap*alhv)*areasc
674+
!hcorr=hcorr+(lhflux-evap*alhv)*areasc ! removed, was double-counting corr, see "Store excess heat in hcorr" below; koster+reichle, 31 May 2024
675675
lhflux=evap*alhv
676676
endif
677677
wesn(1) = wesn(1) + dw

0 commit comments

Comments
 (0)