Skip to content

Commit

Permalink
initialize some additional variables for new icebergs in calve_iceber…
Browse files Browse the repository at this point in the history
…gs, for backwards compatibility in chksums when footloose=.true.
  • Loading branch information
alex-huth committed Jan 4, 2023
1 parent 8045fd4 commit f4d45da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/icebergs.F90
Original file line number Diff line number Diff line change
Expand Up @@ -6309,7 +6309,8 @@ subroutine calve_icebergs(bergs)
newberg%uvel=0.
newberg%vvel=0.
!--added by Alex:
if (bergs%interactive_icebergs_on) then
if (bergs%interactive_icebergs_on .or. footloose) then
!not needed? But provided for backwards compatibility:
newberg%uvel_prev=0.
newberg%vvel_prev=0.
newberg%uvel_old=0.
Expand Down

0 comments on commit f4d45da

Please sign in to comment.