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

Adjust ice to liquid density in ice mass calculation #2

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
5 changes: 3 additions & 2 deletions src/biogeophys/TotalWaterAndHeatMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ subroutine AccumulateLiqIceMassLake(bounds, num_c, filter_c, &
c = filter_c(fc)
! calculate lake liq and ice content per lake layer first
h2olak_liq = dz_lake(c,j) * denh2o * (1 - lake_icefrac(c,j))
h2olak_ice = dz_lake(c,j) * denice * lake_icefrac(c,j)
h2olak_ice = dz_lake(c,j) * denh2o * lake_icefrac(c,j) ! use water density of liquid water as layer depth is not adjusted

liquid_mass(c) = liquid_mass(c) + h2olak_liq
ice_mass(c) = ice_mass(c) + h2olak_ice
Expand Down Expand Up @@ -1086,7 +1086,8 @@ subroutine AccumulateHeatLake(bounds, num_c, filter_c, &
heat_liquid = lake_heat_liquid(c), &
latent_heat_liquid = lake_latent_heat_liquid(c))
! ice heat
h2olak_ice = dz_lake(c,j) * denice * lake_icefrac(c,j)
! use water density as lake layer does not adjust
h2olak_ice = dz_lake(c,j) * denh2o * lake_icefrac(c,j)
lake_heat_ice(c) = lake_heat_ice(c) + &
TempToHeat(temp=t_lake(c,j), cv = (h2olak_ice * cpice))
end do
Expand Down