Skip to content

Commit

Permalink
Merge pull request #36 from erinethomas/FSD_flag_only
Browse files Browse the repository at this point in the history
FSD namelist flag and Abort.
  • Loading branch information
eclare108213 authored Sep 28, 2023
2 parents e852a02 + 584443d commit 6b7682d
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 1 deletion.
3 changes: 3 additions & 0 deletions components/mpas-seaice/bld/build-namelist
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,10 @@ add_default($nl, 'config_restart_timestamp_name');
##############################

add_default($nl, 'config_nCategories');
add_default($nl, 'config_nFloeCategories');
add_default($nl, 'config_nIceLayers');
add_default($nl, 'config_nSnowLayers');
add_default($nl, 'config_nFloeCategories');

##############################
# Namelist group: initialize #
Expand Down Expand Up @@ -654,6 +656,7 @@ add_default($nl, 'config_use_aerosols');
add_default($nl, 'config_use_effective_snow_density');
add_default($nl, 'config_use_snow_grain_radius');
add_default($nl, 'config_use_special_boundaries_tracers');
add_default($nl, 'config_use_floe_size_distribution');

###################################
# Namelist group: biogeochemistry #
Expand Down
2 changes: 2 additions & 0 deletions components/mpas-seaice/bld/build-namelist-section
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ add_default($nl, 'config_do_restart_snow_grain_radius');
add_default($nl, 'config_nCategories');
add_default($nl, 'config_nIceLayers');
add_default($nl, 'config_nSnowLayers');
add_default($nl, 'config_nFloeCategories');

##############################
# Namelist group: initialize #
Expand Down Expand Up @@ -186,6 +187,7 @@ add_default($nl, 'config_use_aerosols');
add_default($nl, 'config_use_effective_snow_density');
add_default($nl, 'config_use_snow_grain_radius');
add_default($nl, 'config_use_special_boundaries_tracers');
add_default($nl, 'config_use_floe_size_distribution');

###################################
# Namelist group: biogeochemistry #
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@

<!-- dimensions -->
<config_nCategories>5</config_nCategories>
<config_nFloeCategories>1</config_nFloeCategories>
<config_nIceLayers>7</config_nIceLayers>
<config_nSnowLayers>5</config_nSnowLayers>
<config_nFloeCategories>1</config_nFloeCategories>

<!-- initialize -->
<config_earth_radius>6371229.0</config_earth_radius>
Expand Down Expand Up @@ -189,6 +191,7 @@
<config_use_effective_snow_density>true</config_use_effective_snow_density>
<config_use_snow_grain_radius>true</config_use_snow_grain_radius>
<config_use_special_boundaries_tracers>false</config_use_special_boundaries_tracers>
<config_use_floe_size_distribution>false</config_use_floe_size_distribution>

<!-- biogeochemistry -->
<config_use_brine>false</config_use_brine>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,22 @@ Valid values: Any positive integer.
Default: Defined in namelist_defaults.xml
</entry>

<entry id="config_nFloeCategories" type="integer"
category="dimensions" group="dimensions">
The number of floe size categories to use.

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

<entry id="config_nCategories" type="integer"
category="dimensions" group="dimensions">
The number of ice thickness categories to use.

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

<entry id="config_nIceLayers" type="integer"
category="dimensions" group="dimensions">
The number of ice layers in the vertical direction to use.
Expand All @@ -304,6 +320,13 @@ Valid values: Any positive integer.
Default: Defined in namelist_defaults.xml
</entry>

<entry id="config_nFloeCategories" type="integer"
category="dimensions" group="dimensions">
The number of ice floe categories to use.

Valid values: 1(default), 12, 16, 24.
Default: Defined in namelist_defaults.xml
</entry>

<!-- initialize -->

Expand Down Expand Up @@ -936,6 +959,13 @@ Valid values: true or false
Default: Defined in namelist_defaults.xml
</entry>

<entry id="config_use_floe_size_distribution" type="logical"
category="column_tracers" group="column_tracers">
Use floe size distribution. Requires Icepack column package.

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

<!-- biogeochemistry -->

Expand Down
6 changes: 5 additions & 1 deletion components/mpas-seaice/driver/ice_comp_mct.F
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,11 @@ end subroutine xml_stream_get_attributes
else if (trim(tempCharConfig) == "column_package") then
call seaice_column_coupling_prep(domain)
endif ! config_column_physics_type


call MPAS_pool_get_config(domain % configs, "config_use_floe_size_distribution", tempLogicalConfig)
if (tempLogicalConfig) then
call mpas_log_write('FloeSizeDistribution coming online soon. Turn FSD off for now.', MPAS_LOG_CRIT)
endif
!-----------------------------------------------------------------------
!
! send intial state to driver
Expand Down
13 changes: 13 additions & 0 deletions components/mpas-seaice/src/Registry.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
definition="namelist:config_nCategories"
description="The number of ice thickness categories."
/>
<dim name="nFloeCategories"
definition="namelist:config_nFloeCategories"
description="The number of floe size categories."
/>
<dim name="nIceLayers"
definition="namelist:config_nIceLayers"
description="The number of ice layers in the vertical direction."
Expand Down Expand Up @@ -434,6 +438,10 @@
description="The number of ice thickness categories to use."
possible_values="Any positive integer."
/>
<nml_option name="config_nFloeCategories" type="integer" default_value="1" units="unitless"
description="The number of floe size categories to use."
possible_values="Any positive integer."
/>
<nml_option name="config_nIceLayers" type="integer" default_value="7" units="unitless"
description="The number of ice layers in the vertical direction to use."
possible_values="Any positive integer."
Expand Down Expand Up @@ -775,6 +783,11 @@
description="Modify tracers in given boundary cells."
possible_values="true or false"
/>
<nml_option name="config_use_floe_size_distribution" type="logical" default_value="false" units="unitless"
description="Use prognostic floe size distribution"
possible_values="true or false"
icepack_name="tr_fsd"
/>
</nml_record>

<nml_record name="biogeochemistry" in_defaults="true">
Expand Down

0 comments on commit 6b7682d

Please sign in to comment.