Skip to content

Commit

Permalink
Correction to allow ponds to drain for ktherm=2. The change made in r…
Browse files Browse the repository at this point in the history
…947 was incorrect.
  • Loading branch information
eclare108213 committed Mar 26, 2015
1 parent 0ba9315 commit 9279c32
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions source/ice_therm_mushy.F90
Original file line number Diff line number Diff line change
Expand Up @@ -3127,9 +3127,7 @@ subroutine flushing_velocity(zTin, zSin, &
hpond, apond, &
dt, w)

! calculate the vertical flushing Darcy velocity
! negative - downward flushing
! positive - upward flushing
! calculate the vertical flushing Darcy velocity (positive downward)

use ice_constants, only: viscosity_dyn

Expand Down Expand Up @@ -3206,13 +3204,13 @@ subroutine flushing_velocity(zTin, zSin, &
dhhead = max(hbrine - hocn,c0)

! darcy flow through ice
w = -(perm_harm * rhow * gravit * (dhhead / hin)) / viscosity_dyn
w = (perm_harm * rhow * gravit * (dhhead / hin)) / viscosity_dyn

! maximum down flow to drain pond
w_down_max = -(hpond * apond) / dt
w_down_max = (hpond * apond) / dt

! limit flow
w = max(w,w_down_max)
w = min(w,w_down_max)

! limit amount of brine that can be advected out of any particular layer
wlimit = (advection_limit * phi_min * hilyr) / dt
Expand All @@ -3223,7 +3221,7 @@ subroutine flushing_velocity(zTin, zSin, &
w = c0
endif

w = min(w,c0)
w = max(w, c0)

end subroutine flushing_velocity

Expand All @@ -3249,7 +3247,7 @@ subroutine flush_pond(w, hin, hpond, apond, dt)
if (apond > c0 .and. hpond > c0) then

! flush pond through mush
hpond = hpond + (min(w,c0) * dt) / apond
hpond = hpond - w * dt / apond

hpond = max(hpond, c0)

Expand Down

0 comments on commit 9279c32

Please sign in to comment.