Skip to content

Commit

Permalink
fix hist workaround and fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mahf708 committed Feb 10, 2025
1 parent 5ec0930 commit 7882633
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions components/eamxx/cime_config/SystemTests/mvkxx.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,15 +193,17 @@ def _generate_baseline(self):
self._case.get_value("CASE"), self.component, rundir, ref_case=ref_case
)
# for eamxx, we need to get all files that have *scream_????.h.*.nc added to this list
hists += glob.glob(os.path.join(rundir, "*scream_????.h.AVERAGE.*.nc"))
more_hists = glob.glob(os.path.join(rundir, "*scream_????.h.AVERAGE.*.nc"))
# before copying, let's also rename some files
# current pattern is scream_????.h.AVERAGE.nmonths_x1.????-??.nc
# desired pattern is scream_????.h.????-??.nc
for hist in hists:
for hist in more_hists:
if "scream" in hist:
# get rid of the AVERAGE.nmonths_x1.
new_hist = hist.replace("AVERAGE.nmonths_x1.", "")
os.rename(hist, new_hist)
# add it to hists
hists.append(new_hist)
logger.debug("MVKxx additional baseline files: {}".format(hists))
hists = [os.path.join(rundir, hist) for hist in hists]
for hist in hists:
Expand Down
6 changes: 5 additions & 1 deletion components/eamxx/docs/user/multi-instance-mvk.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ For some background, see DOIs:

## Multi-instance testing

See this [link](https://esmci.github.io/cime/versions/master/html/users_guide/multi-instance.html) for background on the multi-instance capability in CIME.
See following link for background on the multi-instance capability in CIME.

[Link][cime-multi-instance]

[cime-multi-instance]: https://esmci.github.io/cime/versions/master/html/users_guide/multi-instance.html

In SCREAM/EAMxx, it works in exactly the same except that
the namelist file has a different name and location.
Expand Down

0 comments on commit 7882633

Please sign in to comment.