Skip to content

Commit

Permalink
Add back flooding so it can be turned on with source mods which is ne…
Browse files Browse the repository at this point in the history
…eded for @swensosc work
  • Loading branch information
ekluzek committed Jan 22, 2024
1 parent 72dddbf commit 221b953
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
1 change: 1 addition & 0 deletions cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def _create_namelists(case, confdir, inst_string, infile, nmlgen, data_list_path
else:
logger.warning( "WARNING::"+message )

config['mosart_flood_mode'] = case.get_value("MOSART_FLOOD_MODE")
config['rof_grid'] = case.get_value("ROF_GRID")
config['lnd_grid'] = case.get_value("LND_GRID")
config['rof_ncpl'] = case.get_value("ROF_NCPL")
Expand Down
14 changes: 13 additions & 1 deletion cime_config/config_component.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<desc option="FLOOD">MOSART model with flood:</desc>
</description>

<entry id="COMP_ROF">
<entry id="COMP_ROF">
<type>char</type>
<valid_values>mosart</valid_values>
<default_value>mosart</default_value>
Expand Down Expand Up @@ -44,6 +44,18 @@
<desc>If warnings in namelist setttings from buildnml should be ignored or not</desc>
</entry>

<entry id="MOSART_FLOOD_MODE">
<type>char</type>
<valid_values>ACTIVE,NULL</valid_values>
<default_value>NULL</default_value>
<values>
<value compset="_MOSART%FLOOD">ACTIVE</value>
</values>
<group>build_component_mosart</group>
<file>env_build.xml</file>
<desc>mode for mosart flood feature, NULL means mosart flood is turned off</desc>
</entry>

<entry id="MOSART_SIM_YEAR">
<type>char</type>
<valid_values></valid_values>
Expand Down
14 changes: 14 additions & 0 deletions cime_config/namelist_definition_mosart.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@
<!-- MOSART Namelist -->
<!-- ======================================================================================== -->

<entry id="do_rtmflood" modify_via_xml="MOSART_FLOOD_MODE">
<type>logical</type>
<category>mosart</category>
<group>mosart_inparm</group>
<values>
<value mosart_flood_mode="ACTIVE">.true.</value>
<value mosart_flood_mode="NULL">.false.</value>
</values>
<desc>
If .true., turn on mosart flooding back to clm
Note that mosart flood is not supported in CESM1.1
</desc>
</entry>

<entry id="ice_runoff">
<type>logical</type>
<category>mosart</category>
Expand Down

0 comments on commit 221b953

Please sign in to comment.