Skip to content

Commit

Permalink
add config_macro_drainage_timescale
Browse files Browse the repository at this point in the history
  • Loading branch information
eclare108213 committed Oct 2, 2023
1 parent ce3f978 commit 64aa64f
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/mpas-seaice/bld/build-namelist
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,7 @@ add_default($nl, 'config_rapid_model_critical_Ra');
add_default($nl, 'config_rapid_mode_aspect_ratio');
add_default($nl, 'config_slow_mode_drainage_strength');
add_default($nl, 'config_slow_mode_critical_porosity');
add_default($nl, 'config_macro_drainage_timescale');
add_default($nl, 'config_congelation_ice_porosity');

#######################
Expand Down
1 change: 1 addition & 0 deletions components/mpas-seaice/bld/build-namelist-section
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ add_default($nl, 'config_rapid_model_critical_Ra');
add_default($nl, 'config_rapid_mode_aspect_ratio');
add_default($nl, 'config_slow_mode_drainage_strength');
add_default($nl, 'config_slow_mode_critical_porosity');
add_default($nl, 'config_macro_drainage_timescale');
add_default($nl, 'config_congelation_ice_porosity');

#######################
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@
<config_rapid_mode_aspect_ratio>1.0</config_rapid_mode_aspect_ratio>
<config_slow_mode_drainage_strength>-5.0e-8</config_slow_mode_drainage_strength>
<config_slow_mode_critical_porosity>0.05</config_slow_mode_critical_porosity>
<config_macro_drainage_timescale>10.</config_macro_drainage_timescale>
<config_congelation_ice_porosity>0.85</config_congelation_ice_porosity>

<!-- itd -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2461,6 +2461,14 @@ Valid values: Any real number between 0 and 1.
Default: Defined in namelist_defaults.xml
</entry>

<entry id="config_macro_drainage_timescale" type="real"
category="thermodynamics" group="thermodynamics">
Timescale for macroscopic drainage.

Valid values: Any positive real number.
Default: Defined in namelist_defaults.xml
</entry>

<entry id="config_congelation_ice_porosity" type="real"
category="thermodynamics" group="thermodynamics">
Liquid fraction of congelation ice.
Expand Down
5 changes: 5 additions & 0 deletions components/mpas-seaice/src/Registry.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1727,6 +1727,11 @@
possible_values="Any real number between 0 and 1."
icepack_name="phi_c_slow_mode"
/>
<nml_option name="config_macro_drainage_timescale" type="real" default_value="10." units="days"
description="Timescale for macroscopic drainage."
possible_values="Any positive real number."
icepack_name="tscale_pnd_drain"
/>
<nml_option name="config_congelation_ice_porosity" type="real" default_value="0.85" units="unitless"
description="Liquid fraction of congelation ice."
possible_values="Any real number between 0 and 1."
Expand Down
7 changes: 7 additions & 0 deletions components/mpas-seaice/src/shared/mpas_seaice_icepack.F
Original file line number Diff line number Diff line change
Expand Up @@ -11580,6 +11580,7 @@ subroutine init_icepack_package_configs(domain)
config_rapid_mode_aspect_ratio, &
config_slow_mode_drainage_strength, &
config_slow_mode_critical_porosity, &
config_macro_drainage_timescale, &
config_congelation_ice_porosity, &
! config_frazil_ice_porosity, &
! config_frazil_salinity_reduction, &
Expand Down Expand Up @@ -11775,6 +11776,7 @@ subroutine init_icepack_package_configs(domain)
call MPAS_pool_get_config(domain % configs, "config_rapid_mode_aspect_ratio", config_rapid_mode_aspect_ratio)
call MPAS_pool_get_config(domain % configs, "config_slow_mode_drainage_strength", config_slow_mode_drainage_strength)
call MPAS_pool_get_config(domain % configs, "config_slow_mode_critical_porosity", config_slow_mode_critical_porosity)
call MPAS_pool_get_config(domain % configs, "config_macro_drainage_timescale", config_macro_drainage_timescale)
call MPAS_pool_get_config(domain % configs, "config_congelation_ice_porosity", config_congelation_ice_porosity)
! call MPAS_pool_get_config(domain % configs, "config_frazil_ice_porosity", config_frazil_ice_porosity)
! call MPAS_pool_get_config(domain % configs, "config_frazil_salinity_reduction", config_frazil_salinity_reduction)
Expand Down Expand Up @@ -12206,6 +12208,7 @@ subroutine init_icepack_package_configs(domain)
dSdt_slow_mode_in = config_slow_mode_drainage_strength, &
phi_c_slow_mode_in = config_slow_mode_critical_porosity, &
phi_i_mushy_in = config_congelation_ice_porosity, &
tscale_pnd_drain_in = config_macro_drainage_timescale, &
! shortwave_in = config_shortwave_type, &
shortwave_in = tmp_config_shortwave_type, &
albedo_type_in = config_albedo_type, &
Expand Down Expand Up @@ -12531,6 +12534,10 @@ subroutine init_icepack_package_configs(domain)
! liquid fraction porosity cutoff for slow mode
!phi_c_slow_mode = config_slow_mode_critical_porosity

! tscale_pnd_drain:
! Timescale for macroscopic drainage
!tscale_pnd_drain = config_macro_drainage_timescale

! phi_i_mushy:
! liquid fraction of congelation ice
!phi_i_mushy = config_congelation_ice_porosity
Expand Down

0 comments on commit 64aa64f

Please sign in to comment.