Skip to content

Commit c02d10b

Browse files
zero out ponds when there level fraction is < puny
1 parent 1c4f9bf commit c02d10b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

columnphysics/icepack_therm_vertical.F90

+5-1
Original file line numberDiff line numberDiff line change
@@ -2749,7 +2749,11 @@ subroutine icepack_step_therm1(dt, &
27492749

27502750
! Translate changes in apond into apnd tracer
27512751
if (tr_pond_lvl) then
2752-
apnd(n) = apond(n) / alvl(n)
2752+
if (alvl(n) > puny) then
2753+
apnd(n) = max(apond(n) / alvl(n), c1)
2754+
else
2755+
apnd(n) = c0
2756+
endif
27532757
else
27542758
apnd(n) = apond(n)
27552759
endif

0 commit comments

Comments
 (0)