Skip to content

Commit 5444eae

Browse files
authored
Merge pull request #4944 from alperaltuntas/fix_mom_ic_skip_logic
Skip MOM6 .ic. history file comparison in multi-instance runs Currently, copy_histfiles skips the mom6 initial conditions (ic) files for single-instance files, but not for multi-instance files. This PR fixes the logic by skipping these files for both single instance and multi instance runs.
2 parents e589cb4 + 8ec7fdb commit 5444eae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎CIME/hist_utils.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def copy_histfiles(case, suffix, match_suffix=None):
101101
if "ocean_geometry" in test_hist:
102102
comments += " skipping '{}'\n".format(test_hist)
103103
continue
104-
if "mom6.ic" in test_hist:
104+
if re.search(r"mom6(_[0-9]{4})?\.ic", os.path.basename(test_hist)):
105105
comments += " skipping '{}'\n".format(test_hist)
106106
continue
107107
comments += " Copying hist files for model '{}'\n".format(model)

0 commit comments

Comments
 (0)