Skip to content

Commit

Permalink
fix a bug in snowwater_lake when dealing with snow melt above unfroze…
Browse files Browse the repository at this point in the history
…n top lake layer
  • Loading branch information
weinan123 committed Jan 21, 2025
1 parent 673269e commit 2e14a75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/MOD_Lake.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1799,7 +1799,7 @@ SUBROUTINE snowwater_lake ( USE_Dynamic_Lake, &
! all snow melt
IF (c>=a+b)THEN
t_lake(1) = (cpliq*(denh2o*dz_lake(1)*t_lake(1) + (sumsnowice+sumsnowliq)*tfrz) - a - b) / &
(cpliq*(denh2o*dz_lake(1) + sumsnowice+ sumsnowice))
(cpliq*(denh2o*dz_lake(1) + sumsnowice + sumsnowliq))
sm = sm + scv/deltim
qout_snowb = qout_snowb + scv/deltim
scv = 0.
Expand Down

0 comments on commit 2e14a75

Please sign in to comment.