Skip to content

Commit

Permalink
added fixed implementation of fixed hypsometry
Browse files Browse the repository at this point in the history
  • Loading branch information
davidclemenssewall committed Jan 13, 2025
1 parent bc8fa22 commit b819e42
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3,703 deletions.
11 changes: 10 additions & 1 deletion columnphysics/icepack_meltpond_sealvl.F90
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,16 @@ subroutine pond_hypsometry(hpnd, apnd, dhpond, dvpond, hin)
apnd = c0
hpnd = c0
else
pndasp = calc_pndasp(hin)
if (trim(pndhyps) == 'sealevel') then
pndasp = calc_pndasp(hin)
elseif (trim(pndhyps) == 'fixed') then
pndasp = pndaspect
else
call icepack_warnings_add(subname// &
" unsupported pndhyps option" )
call icepack_warnings_setabort(.true.,__FILE__,__LINE__)
if (icepack_warnings_aborted(subname)) return
endif
apnd = sqrt(vp/pndasp)
! preserve pond volume if pond fills all available area
hpnd = c0
Expand Down
3 changes: 1 addition & 2 deletions columnphysics/icepack_therm_mushy.F90
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ module icepack_therm_mushy
use icepack_parameters, only: sw_redist, sw_frac, sw_dtemp
use icepack_parameters, only: pndmacr
use icepack_tracers, only: nilyr, nslyr, tr_pond
use icepack_parameters, only: pndmacr
use icepack_mushy_physics, only: icepack_mushy_density_brine, enthalpy_brine, icepack_enthalpy_snow
use icepack_mushy_physics, only: enthalpy_mush_liquid_fraction
use icepack_mushy_physics, only: icepack_mushy_temperature_mush, icepack_mushy_liquid_fraction
Expand Down Expand Up @@ -192,7 +191,7 @@ subroutine temperature_changes_salinity(dt, &
call flushing_velocity(zTin, phi, &
hin, hsn, &
hilyr, &
hpond, apond, &
hpond, apond, &
dt, w)
if (icepack_warnings_aborted(subname)) return

Expand Down
Loading

0 comments on commit b819e42

Please sign in to comment.