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 = case.get_value("HAMOCC_OUTPUT")
Copy link
Contributor

Choose a reason for hiding this comment

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

I would suggest a more self-explaining name, e.g. HAMOCC_OUTPUT_VOL(UME) or HAMOCC_OUTPUT_SIZE

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Renamed to 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"] = hamocc_output
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">
<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='small'>0,0,2</value>
<value hamocc_output='medium'>0,2,2</value>
<value hamocc_output='large'>2,2,2</value>
Copy link
Contributor

Choose a reason for hiding this comment

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

For daily output it needs to be 4. Or more precisely, whenever more than one time-slice is written into one file, one cannot use 2. The compressed format with offset and scale-factor does not work properly in this case.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Can you re-check? The newly pushed commit should have the right output, right?

<value is_test="yes">4,2,2</value>
<value is_test="yes" empty_hist="yes">0,0,0</value>
</values>
Expand Down