Skip to content

Commit

Permalink
fixed operator splitting error in footloose thermodynamics
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-huth committed Apr 20, 2021
1 parent 2133641 commit 80928ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/icebergs.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2881,8 +2881,8 @@ subroutine thermodynamics(bergs)
nVolfl=Tnfl*Wnfl*Lnfl ! new footloose volume (m^3)
nMfl2=(nVolfl/Volfl)*Mfl !new FL mass (kg), after buoyant convection
!erosion
Lnfl=max(Lfl-Me_fl*bergs%dt,0.) ! new FL length (m)
Wnfl=max(Wfl-Me_fl*bergs%dt,0.) ! new FL width (m)
Lnfl=max(Lnfl-Me_fl*bergs%dt,0.) ! new FL length (m)
Wnfl=max(Wnfl-Me_fl*bergs%dt,0.) ! new FL width (m)
nVolfl=Tnfl*Wnfl*Lnfl ! new footloose volume (m^3)
nMfl=(nVolfl/Volfl)*Mfl !new FL mass (kg), after all melt and erosion
dMe_fl=nMfl2-nMfl !FL mass lost to erosion (>0) (kg)
Expand Down

0 comments on commit 80928ae

Please sign in to comment.