Skip to content

Commit

Permalink
fixed initialization of tscale_pnd_drain, now passes baseline compari…
Browse files Browse the repository at this point in the history
…son test with main
  • Loading branch information
davidclemenssewall committed Jan 9, 2025
1 parent 437e0b8 commit 01a0e2b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion cicecore/cicedyn/general/ice_flux.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ end subroutine init_history_therm

subroutine init_history_dyn

use ice_state, only: aice, vice, vsno, trcr, strength, divu, shear
use ice_state, only: aice, vice, vsno, trcr, strength, divu, shear, vort
use ice_grid, only: grid_ice

logical (kind=log_kind) :: &
Expand All @@ -1102,6 +1102,7 @@ subroutine init_history_dyn
sig2 (:,:,:) = c0
divu (:,:,:) = c0
shear (:,:,:) = c0
vort (:,:,:) = c0
taubxU (:,:,:) = c0
taubyU (:,:,:) = c0
strength (:,:,:) = c0
Expand Down
9 changes: 5 additions & 4 deletions cicecore/cicedyn/general/ice_init.F90
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module ice_init

use ice_kinds_mod
use ice_communicate, only: my_task, master_task, ice_barrier
use ice_constants, only: c0, c1, c2, c3, c5, c12, p01, p2, p3, p5, p75, p166, &
use ice_constants, only: c0, c1, c2, c3, c5, c10, c12, p01, p2, p3, p5, p75, p166, &
cm_to_m
use ice_exit, only: abort_ice
use ice_fileunits, only: nu_nml, nu_diag, nml_filename, diag_type, &
Expand Down Expand Up @@ -239,7 +239,9 @@ subroutine input_data
kitd, ktherm, conduct, ksno, &
a_rapid_mode, Rac_rapid_mode, aspect_rapid_mode, &
dSdt_slow_mode, phi_c_slow_mode, phi_i_mushy, &
floediam, hfrazilmin, Tliquidus_max, hi_min
floediam, hfrazilmin, Tliquidus_max, hi_min, &
tscale_pnd_drain


namelist /dynamics_nml/ &
kdyn, ndte, revised_evp, yield_curve, &
Expand Down Expand Up @@ -267,7 +269,6 @@ subroutine input_data

namelist /ponds_nml/ &
hs0, dpscale, frzpnd, &
tscale_pnd_drain, &
rfracmin, rfracmax, pndaspect, hs1, &
hp1

Expand Down Expand Up @@ -500,7 +501,7 @@ subroutine input_data
rfracmin = 0.15_dbl_kind ! minimum retained fraction of meltwater
rfracmax = 0.85_dbl_kind ! maximum retained fraction of meltwater
pndaspect = 0.8_dbl_kind ! ratio of pond depth to area fraction
tscale_pnd_drain = 0.5
tscale_pnd_drain = c10 ! mushy macroscopic drainage timescale (days)
snwredist = 'none' ! type of snow redistribution
snw_aging_table = 'test' ! snow aging lookup table
snw_filename = 'unknown' ! snowtable filename
Expand Down
3 changes: 3 additions & 0 deletions configuration/scripts/ice_in
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@
restart_pond_topo = .false.
tr_pond_lvl = .true.
restart_pond_lvl = .false.
tr_pond_sealvl = .false.
restart_pond_sealvl = .false.
tr_snow = .false.
restart_snow = .false.
tr_iso = .false.
Expand All @@ -147,6 +149,7 @@
Tliquidus_max = -0.1d0
hfrazilmin = 0.05d0
floediam = 300.0d0
tscale_pnd_drain = 10.0d0
/

&dynamics_nml
Expand Down

0 comments on commit 01a0e2b

Please sign in to comment.