Skip to content

Commit

Permalink
exclude some mom files, add SAVE_INTERIM_RESTART_FILES for ERR tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Oct 23, 2024
1 parent c0125b6 commit a5d2b83
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions CIME/data/config/config_tests.xml
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ NODEFAIL Tests restart upon detected node failure. Generates fake failu
<HIST_OPTION>$STOP_OPTION</HIST_OPTION>
<RESUBMIT>1</RESUBMIT>
<CONTINUE_RUN>FALSE</CONTINUE_RUN>
<DOUT_S_SAVE_INTERIM_RESTART_FILES>TRUE</DOUT_S_SAVE_INTERIM_RESTART_FILES>
</test>

<test NAME="ERRI">
Expand Down
9 changes: 8 additions & 1 deletion CIME/hist_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ def copy_histfiles(case, suffix, match_suffix=None):
)

continue
comments += " Copying hist files for model '{}'\n".format(model)
test_hists = archive.get_latest_hist_files(
casename, model, rundir, suffix=match_suffix, ref_case=ref_case
)
Expand All @@ -93,6 +92,14 @@ def copy_histfiles(case, suffix, match_suffix=None):
if not test_hist.endswith(".nc") or "once" in os.path.basename(test_hist):
logger.info("Will not compare non-netcdf file {}".format(test_hist))
continue
if model == "mom":
if "ocean_geometry" in test_hist:
comments += " skipping '{}'\n".format(test_hist)
continue
if "mom6.ic" in test_hist:
comments += " skipping '{}'\n".format(test_hist)
continue
comments += " Copying hist files for model '{}'\n".format(model)
new_file = "{}.{}".format(test_hist, suffix)
if os.path.exists(new_file):
os.remove(new_file)
Expand Down

0 comments on commit a5d2b83

Please sign in to comment.