Skip to content
2 changes: 2 additions & 0 deletions cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def buildnml(case, caseroot, compname):
blom_coupling = case.get_value("BLOM_COUPLING")
blom_tracer_modules = case.get_value("BLOM_TRACER_MODULES")
blom_atrc = case.get_value("BLOM_ATRC")
hamocc_output_size = case.get_value("HAMOCC_OUTPUT_SIZE")
hamocc_ciso = case.get_value("HAMOCC_CISO")
hamocc_extncycle = case.get_value("HAMOCC_EXTNCYCLE")
hamocc_n2oc = case.get_value("HAMOCC_N2OC")
Expand Down Expand Up @@ -189,6 +190,7 @@ def buildnml(case, caseroot, compname):
config["blom_coupling"] = blom_coupling
config["blom_tracer_modules"] = blom_tracer_modules
config["blom_atrc"] = blom_atrc
config["hamocc_output_size"] = hamocc_output_size if is_test == False else 'dummy' # choose is_test, if is_test==True
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if this is necessary - the parser will have a logic of taking the last match that is found? At least otherwise, the existing is_test and empty_hist logic wouldn't work either.

config["hamocc_ciso"] = "yes" if hamocc_ciso else "no"
config["hamocc_extncycle"] = "yes" if hamocc_extncycle else "no"
config["hamocc_n2oc"] = "yes" if hamocc_n2oc else "no"
Expand Down
9 changes: 9 additions & 0 deletions cime_config/config_component.xml
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,15 @@
<desc>Namelist option to set sinking scheme. Requires module ecosys</desc>
</entry>

<entry id="HAMOCC_OUTPUT_SIZE">
<type>char</type>
<valid_values>small,medium,large</valid_values>
<default_value>medium</default_value>
<group>run_component_blom</group>
<file>env_run.xml</file>
<desc>Namelist option to set iHAMOCC output option. Requires module ecosys</desc>
</entry>

<entry id="HAMOCC_PREF_TRACERS">
<type>logical</type>
<valid_values>TRUE,FALSE</valid_values>
Expand Down
4 changes: 3 additions & 1 deletion cime_config/namelist_definition_blom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5365,7 +5365,9 @@
<category>diabgc</category>
<group>diabgc</group>
<values>
<value>0,2,2</value>
<value hamocc_output_size='small'>0,0,2</value>
<value hamocc_output_size='medium'>0,2,2</value>
<value hamocc_output_size='large'>4,2,2</value>
<value is_test="yes">4,2,2</value>
<value is_test="yes" empty_hist="yes">0,0,0</value>
</values>
Expand Down