Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix buildnml for eamxx+ERS #6987

Merged
merged 1 commit into from
Feb 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion components/eamxx/cime_config/eamxx_buildnml.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ def perform_consistency_checks(case, xml):
# of a rad superstep
rrtmgp = find_node(xml,"rrtmgp")
rest_opt = case.get_value("REST_OPTION")
is_test = case.get_value("TEST")
if rrtmgp is not None and rest_opt is not None and rest_opt not in ["never","none"]:
rest_n = int(case.get_value("REST_N"))
rad_freq = int(find_node(rrtmgp,"rad_frequency").text)
Expand All @@ -177,7 +178,9 @@ def perform_consistency_checks(case, xml):
rad_tstep = atm_tstep * rad_freq


if rad_freq==1:
# Some tests (ERS) make late (run-phase) changes, so we cannot validate restart
# settings here.
if rad_freq==1 or is_test:
pass
elif rest_opt in ["nsteps", "nstep"]:
expect (rest_n % rad_freq == 0,
Expand Down
Loading