Skip to content

Commit

Permalink
Merge pull request #39 from eclare108213/add_configs
Browse files Browse the repository at this point in the history
Add or update namelist configuration flags
  • Loading branch information
eclare108213 authored Oct 3, 2023
2 parents e300846 + 64aa64f commit e429dbf
Show file tree
Hide file tree
Showing 7 changed files with 138 additions and 49 deletions.
8 changes: 6 additions & 2 deletions components/mpas-seaice/bld/build-namelist
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,9 @@ add_default($nl, 'config_snow_shortwave_tuning_parameter');
add_default($nl, 'config_temp_change_snow_grain_radius_change');
add_default($nl, 'config_max_melting_snow_grain_radius');
add_default($nl, 'config_algae_absorption_coefficient');
add_default($nl, 'config_use_shortwave_redistribution');
add_default($nl, 'config_shortwave_redistribution_fraction');
add_default($nl, 'config_shortwave_redistribution_threshold');

########################
# Namelist group: snow #
Expand All @@ -861,7 +864,7 @@ add_default($nl, 'config_max_dry_snow_radius');

add_default($nl, 'config_snow_to_ice_transition_depth');
add_default($nl, 'config_pond_refreezing_type');
add_default($nl, 'config_pond_flushing_timescale');
add_default($nl, 'config_pond_flushing_factor');
add_default($nl, 'config_min_meltwater_retained_fraction');
add_default($nl, 'config_max_meltwater_retained_fraction');
add_default($nl, 'config_pond_depth_to_fraction_ratio');
Expand All @@ -879,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 All @@ -901,7 +905,7 @@ add_default($nl, 'config_floediam');
add_default($nl, 'config_ice_strength_formulation');
add_default($nl, 'config_ridging_participation_function');
add_default($nl, 'config_ridging_redistribution_function');
add_default($nl, 'config_ridiging_efolding_scale');
add_default($nl, 'config_ridging_efolding_scale');
add_default($nl, 'config_ratio_ridging_work_to_PE');

##############################
Expand Down
8 changes: 6 additions & 2 deletions components/mpas-seaice/bld/build-namelist-section
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,9 @@ add_default($nl, 'config_snow_shortwave_tuning_parameter');
add_default($nl, 'config_temp_change_snow_grain_radius_change');
add_default($nl, 'config_max_melting_snow_grain_radius');
add_default($nl, 'config_algae_absorption_coefficient');
add_default($nl, 'config_use_shortwave_redistribution');
add_default($nl, 'config_shortwave_redistribution_fraction');
add_default($nl, 'config_shortwave_redistribution_threshold');

########################
# Namelist group: snow #
Expand All @@ -377,7 +380,7 @@ add_default($nl, 'config_max_dry_snow_radius');

add_default($nl, 'config_snow_to_ice_transition_depth');
add_default($nl, 'config_pond_refreezing_type');
add_default($nl, 'config_pond_flushing_timescale');
add_default($nl, 'config_pond_flushing_factor');
add_default($nl, 'config_min_meltwater_retained_fraction');
add_default($nl, 'config_max_meltwater_retained_fraction');
add_default($nl, 'config_pond_depth_to_fraction_ratio');
Expand All @@ -395,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 All @@ -418,7 +422,7 @@ add_default($nl, 'config_floediam');
add_default($nl, 'config_ice_strength_formulation');
add_default($nl, 'config_ridging_participation_function');
add_default($nl, 'config_ridging_redistribution_function');
add_default($nl, 'config_ridiging_efolding_scale');
add_default($nl, 'config_ridging_efolding_scale');
add_default($nl, 'config_ratio_ridging_work_to_PE');

##############################
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,9 @@
<config_temp_change_snow_grain_radius_change>1.5</config_temp_change_snow_grain_radius_change>
<config_max_melting_snow_grain_radius>1500.0</config_max_melting_snow_grain_radius>
<config_algae_absorption_coefficient>0.6</config_algae_absorption_coefficient>
<config_use_shortwave_redistribution>false</config_use_shortwave_redistribution>
<config_shortwave_redistribution_fraction>0.9</config_shortwave_redistribution_fraction>
<config_shortwave_redistribution_threshold>0.02</config_shortwave_redistribution_threshold>

<!-- snow -->
<config_snow_redistribution_scheme>'ITDrdg'</config_snow_redistribution_scheme>
Expand All @@ -369,7 +372,7 @@
<!-- meltponds -->
<config_snow_to_ice_transition_depth>0.0</config_snow_to_ice_transition_depth>
<config_pond_refreezing_type>'hlid'</config_pond_refreezing_type>
<config_pond_flushing_timescale>1.0e-3</config_pond_flushing_timescale>
<config_pond_flushing_factor>1.0e-3</config_pond_flushing_factor>
<config_min_meltwater_retained_fraction>0.15</config_min_meltwater_retained_fraction>
<config_max_meltwater_retained_fraction>1.0</config_max_meltwater_retained_fraction>
<config_pond_depth_to_fraction_ratio>0.8</config_pond_depth_to_fraction_ratio>
Expand All @@ -384,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 All @@ -398,7 +402,7 @@
<config_ice_strength_formulation>'Rothrock75'</config_ice_strength_formulation>
<config_ridging_participation_function>'exponential'</config_ridging_participation_function>
<config_ridging_redistribution_function>'exponential'</config_ridging_redistribution_function>
<config_ridiging_efolding_scale>3.0</config_ridiging_efolding_scale>
<config_ridging_efolding_scale>3.0</config_ridging_efolding_scale>
<config_ratio_ridging_work_to_PE>17.0</config_ratio_ridging_work_to_PE>

<!-- atmosphere -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2236,6 +2236,30 @@ Valid values:
Default: Defined in namelist_defaults.xml
</entry>

<entry id="config_use_shortwave_redistribution" type="logical"
category="shortwave" group="shortwave">
Redistribute shortwave from layers near the melting temperature to the surface.

Valid values: true or false
Default: Defined in namelist_defaults.xml
</entry>

<entry id="config_shortwave_redistribution_fraction" type="real"
category="shortwave" group="shortwave">
Fraction of shortwave moved from a layer near the melting temperature to the surface.

Valid values: fraction between 0 and 1
Default: Defined in namelist_defaults.xml
</entry>

<entry id="config_shortwave_redistribution_threshold" type="real"
category="shortwave" group="shortwave">
Temperature threshold for moving shortwave to the surface.

Valid values:
Default: Defined in namelist_defaults.xml
</entry>


<!-- snow -->

Expand Down Expand Up @@ -2330,9 +2354,9 @@ Valid values: 'cesm' or 'hlid'
Default: Defined in namelist_defaults.xml
</entry>

<entry id="config_pond_flushing_timescale" type="real"
<entry id="config_pond_flushing_factor" type="real"
category="meltponds" group="meltponds">
Alter e-folding time scale for flushing.?????
Alters e-folding time scale for flushing with BL99 thermodynamics.

Valid values:
Default: Defined in namelist_defaults.xml
Expand Down Expand Up @@ -2437,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 Expand Up @@ -2508,7 +2540,7 @@ Valid values: 'Hibler80' or 'exponential'
Default: Defined in namelist_defaults.xml
</entry>

<entry id="config_ridiging_efolding_scale" type="real"
<entry id="config_ridging_efolding_scale" type="real"
category="ridging" group="ridging">
E-folding scale of ridged ice (krdg_redist = 1)

Expand Down
26 changes: 23 additions & 3 deletions components/mpas-seaice/src/Registry.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1583,6 +1583,21 @@
possible_values=""
icepack_name="kalg"
/>
<nml_option name="config_use_shortwave_redistribution" type="logical" default_value="false" units="none"
description="redistribution shortwave from layers near the melting temperature"
possible_values="true or false"
icepack_name="sw_redist"
/>
<nml_option name="config_shortwave_redistribution_fraction" type="real" default_value="0.9" units="none"
description="Fraction of shortwave moved from a layer near the melting temperature to the surface."
possible_values="fraction between 0 and 1"
icepack_name="sw_frac"
/>
<nml_option name="config_shortwave_redistribution_threshold" type="real" default_value="0.02" units="C"
description="Temperature threshold for moving shortwave to the surface."
possible_values=""
icepack_name="sw_dtemp"
/>
</nml_record>

<nml_record name="snow" in_defaults="true">
Expand Down Expand Up @@ -1644,8 +1659,8 @@
possible_values="'cesm' or 'hlid'"
icepack_name="frzpnd"
/>
<nml_option name="config_pond_flushing_timescale" type="real" default_value="1.0e-3" units=""
description="Alter e-folding time scale for flushing.?????"
<nml_option name="config_pond_flushing_factor" type="real" default_value="1.0e-3" units=""
description="Alters e-folding time scale for flushing with BL99 thermodynamics."
possible_values=""
icepack_name="dpscale"
/>
Expand Down Expand Up @@ -1712,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 Expand Up @@ -1761,7 +1781,7 @@
possible_values="'Hibler80' or 'exponential'"
icepack_name="krdg_redist"
/>
<nml_option name="config_ridiging_efolding_scale" type="real" default_value="3.0" units="m^0.5"
<nml_option name="config_ridging_efolding_scale" type="real" default_value="3.0" units="m^0.5"
description="E-folding scale of ridged ice (krdg_redist = 1)"
possible_values=""
icepack_name="mu_rdg"
Expand Down
18 changes: 9 additions & 9 deletions components/mpas-seaice/src/shared/mpas_seaice_column.F
Original file line number Diff line number Diff line change
Expand Up @@ -11011,10 +11011,10 @@ subroutine init_column_package_configs(domain)
config_temp_change_snow_grain_radius_change, &
config_max_melting_snow_grain_radius, &
config_algae_absorption_coefficient, &
config_ridiging_efolding_scale, &
config_ridging_efolding_scale, &
config_ratio_ridging_work_to_PE, &
config_snow_to_ice_transition_depth, &
config_pond_flushing_timescale, &
config_pond_flushing_factor, &
config_min_meltwater_retained_fraction, &
config_max_meltwater_retained_fraction, &
config_pond_depth_to_fraction_ratio, &
Expand Down Expand Up @@ -11183,7 +11183,7 @@ subroutine init_column_package_configs(domain)
call MPAS_pool_get_config(domain % configs, "config_ice_strength_formulation", config_ice_strength_formulation)
call MPAS_pool_get_config(domain % configs, "config_ridging_participation_function", config_ridging_participation_function)
call MPAS_pool_get_config(domain % configs, "config_ridging_redistribution_function", config_ridging_redistribution_function)
call MPAS_pool_get_config(domain % configs, "config_ridiging_efolding_scale", config_ridiging_efolding_scale)
call MPAS_pool_get_config(domain % configs, "config_ridging_efolding_scale", config_ridging_efolding_scale)
call MPAS_pool_get_config(domain % configs, "config_ratio_ridging_work_to_PE", config_ratio_ridging_work_to_PE)
call MPAS_pool_get_config(domain % configs, "config_atmos_boundary_method", config_atmos_boundary_method)
call MPAS_pool_get_config(domain % configs, "config_calc_surface_stresses", config_calc_surface_stresses)
Expand All @@ -11196,7 +11196,7 @@ subroutine init_column_package_configs(domain)
call MPAS_pool_get_config(domain % configs, "config_category_bounds_type", config_category_bounds_type)
call MPAS_pool_get_config(domain % configs, "config_snow_to_ice_transition_depth", config_snow_to_ice_transition_depth)
call MPAS_pool_get_config(domain % configs, "config_pond_refreezing_type", config_pond_refreezing_type)
call MPAS_pool_get_config(domain % configs, "config_pond_flushing_timescale", config_pond_flushing_timescale)
call MPAS_pool_get_config(domain % configs, "config_pond_flushing_factor", config_pond_flushing_factor)
call MPAS_pool_get_config(domain % configs, "config_min_meltwater_retained_fraction", config_min_meltwater_retained_fraction)
call MPAS_pool_get_config(domain % configs, "config_max_meltwater_retained_fraction", config_max_meltwater_retained_fraction)
call MPAS_pool_get_config(domain % configs, "config_pond_depth_to_fraction_ratio", config_pond_depth_to_fraction_ratio)
Expand Down Expand Up @@ -11384,7 +11384,7 @@ subroutine init_column_package_configs(domain)
config_cice_int("config_ice_strength_formulation", config_ice_strength_formulation), &
config_cice_int("config_ridging_participation_function", config_ridging_participation_function), &
config_cice_int("config_ridging_redistribution_function", config_ridging_redistribution_function), &
config_ridiging_efolding_scale, &
config_ridging_efolding_scale, &
config_ratio_ridging_work_to_PE, &
config_atmos_boundary_method, &
config_calc_surface_stresses, &
Expand All @@ -11397,7 +11397,7 @@ subroutine init_column_package_configs(domain)
config_cice_int("config_category_bounds_type", config_category_bounds_type), &
config_snow_to_ice_transition_depth, &
config_pond_refreezing_type, &
config_pond_flushing_timescale, &
config_pond_flushing_factor, &
config_min_meltwater_retained_fraction, &
config_max_meltwater_retained_fraction, &
config_pond_depth_to_fraction_ratio, &
Expand Down Expand Up @@ -11678,7 +11678,7 @@ subroutine init_column_package_configs(domain)
! mu_rdg:
! gives e-folding scale of ridged ice (m^.5)
! (krdg_redist = 1)
!mu_rdg = config_ridiging_efolding_scale
!mu_rdg = config_ridging_efolding_scale

! Cf
! ratio of ridging work to PE change in ridging (kstrength = 1)
Expand Down Expand Up @@ -11759,8 +11759,8 @@ subroutine init_column_package_configs(domain)
!frzpnd = config_pond_refreezing_type

! dpscale:
! alter e-folding time scale for flushing
!dpscale = config_pond_flushing_timescale
! alters e-folding time scale for flushing with BL99 thermodynamics
!dpscale = config_pond_flushing_factor

! rfracmin:
! minimum retained fraction of meltwater
Expand Down
Loading

0 comments on commit e429dbf

Please sign in to comment.