Skip to content

Commit

Permalink
Old aerosol bug fix (tr_aero). (#330)
Browse files Browse the repository at this point in the history
* tr_aero bug fix
  • Loading branch information
dabail10 authored Jul 28, 2020
1 parent cd78f5a commit 3069cef
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions columnphysics/icepack_aerosol.F90
Original file line number Diff line number Diff line change
Expand Up @@ -124,25 +124,19 @@ subroutine update_aerosol(dt, &

if (aicen > c0) then
ar = c1/aicen
hs = vsnon*ar
hi = vicen*ar
dhs_melts = -melts*ar
dhi_snoice = snoice*ar
dhs_snoice = dhi_snoice*rhoi/rhos
dhi_meltt = -meltt*ar
dhi_meltb = -meltb*ar
dhi_congel = congel*ar
else ! ice disappeared during time step
hs = vsnon/aice_old
hi = vicen/aice_old
dhs_melts = -melts/aice_old
dhi_snoice = snoice/aice_old
dhs_snoice = dhi_snoice*rhoi/rhos
dhi_meltt = -meltt/aice_old
dhi_meltb = -meltb/aice_old
dhi_congel = congel/aice_old
ar = c1/aice_old
endif


hs = vsnon*ar
hi = vicen*ar
dhs_melts = -melts
dhi_snoice = snoice
dhs_snoice = dhi_snoice*rhoi/rhos
dhi_meltt = -meltt
dhi_meltb = -meltb
dhi_congel = congel

dhs_evap = hs - (hs_old + dhs_melts - dhs_snoice &
+ fsnow/rhos*dt)
dhi_evap = hi - (hi_old + dhi_meltt + dhi_meltb &
Expand Down

0 comments on commit 3069cef

Please sign in to comment.