Skip to content

Commit

Permalink
protect merge of meltsliq when tr_snow is off (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
apcraig authored Nov 12, 2021
1 parent 27b872c commit 152bd70
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions columnphysics/icepack_flux.F90
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module icepack_flux
use icepack_parameters, only: c1, emissivity
use icepack_warnings, only: warnstr, icepack_warnings_add
use icepack_warnings, only: icepack_warnings_setabort, icepack_warnings_aborted
use icepack_tracers, only: tr_iso
use icepack_tracers, only: tr_iso, tr_snow

implicit none
private
Expand Down Expand Up @@ -217,7 +217,9 @@ subroutine merge_fluxes (aicen, &
meltt = meltt + melttn * aicen
meltb = meltb + meltbn * aicen
melts = melts + meltsn * aicen
meltsliq = meltsliq + meltsliqn * aicen
if (tr_snow) then
meltsliq = meltsliq + meltsliqn * aicen
endif
dsnow = dsnow + dsnown * aicen
congel = congel + congeln * aicen
snoice = snoice + snoicen * aicen
Expand Down

0 comments on commit 152bd70

Please sign in to comment.