Skip to content

Commit

Permalink
zero out ponds when there level fraction is < puny
Browse files Browse the repository at this point in the history
  • Loading branch information
davidclemenssewall committed Dec 16, 2024
1 parent 1c4f9bf commit c02d10b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion columnphysics/icepack_therm_vertical.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2749,7 +2749,11 @@ subroutine icepack_step_therm1(dt, &

! Translate changes in apond into apnd tracer
if (tr_pond_lvl) then
apnd(n) = apond(n) / alvl(n)
if (alvl(n) > puny) then
apnd(n) = max(apond(n) / alvl(n), c1)
else
apnd(n) = c0
endif
else
apnd(n) = apond(n)
endif
Expand Down

0 comments on commit c02d10b

Please sign in to comment.