Skip to content

Commit

Permalink
move control of this variable to cam
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Apr 24, 2024
1 parent 3b1e50b commit b623691
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 19 deletions.
6 changes: 0 additions & 6 deletions cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ def _create_drv_namelists(case, infile, confdir, nmlgen, files):
config["COMP_OCN"] = case.get_value("COMP_OCN")
config["COMP_ROF"] = case.get_value("COMP_ROF")
config["COMP_WAV"] = case.get_value("COMP_WAV")
config["CAMDEV"] = "True" if "CAM%DEV" in case.get_value("COMPSET") else "False"

if (
(
Expand Down Expand Up @@ -145,11 +144,6 @@ def _create_drv_namelists(case, infile, confdir, nmlgen, files):
# set aquaplanet if appropriate
if config["COMP_OCN"] == "docn" and "aqua" in case.get_value("DOCN_MODE"):
nmlgen.set_value("aqua_planet", value=".true.")

# make sure that variable add_gusts is only set to true if compset includes cam_dev
add_gusts = literal_to_python_value(nmlgen.get_value("add_gusts"), type_="logical")
if add_gusts:
expect("CAM%DEV" in case.get_value("COMPSET"),"ERROR: add_gusts can only be set if CAM%DEV in compset {}".format(case.get_value("COMPSET")))

# --------------------------------
# Overwrite: set component coupling frequencies
Expand Down
13 changes: 0 additions & 13 deletions cime_config/namelist_definition_drv.xml
Original file line number Diff line number Diff line change
Expand Up @@ -946,19 +946,6 @@
</values>
</entry>

<entry id="add_gusts">
<type>logical</type>
<category>control</category>
<group>MED_attributes</group>
<desc>
add a wind gustiness factor
</desc>
<values>
<value CAMDEV="True">.true.</value>
<value CAMDEV="False">.false.</value>
</values>
</entry>

<entry id="do_budgets" modify_via_xml="BUDGETS">
<type>logical</type>
<category>budget</category>
Expand Down
14 changes: 14 additions & 0 deletions cime_config/namelist_definition_drv_flds.xml
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,18 @@
</desc>
</entry>

<!-- ======================================================================================== -->
<!-- Gusts -->
<!-- ======================================================================================== -->

<entry id="add_gusts">
<type>logical</type>
<category>control</category>
<group>wind_gusts_nl</group>
<valid_values>.true.,.false.</valid_values>
<desc>
add a wind gustiness factor
</desc>
</entry>

</entry_id>

0 comments on commit b623691

Please sign in to comment.