diff --git a/components/eamxx/cime_config/SystemTests/mvkxx.py b/components/eamxx/cime_config/SystemTests/mvkxx.py index 58bee170d581..c26f27b5ceea 100644 --- a/components/eamxx/cime_config/SystemTests/mvkxx.py +++ b/components/eamxx/cime_config/SystemTests/mvkxx.py @@ -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: diff --git a/components/eamxx/docs/user/multi-instance-mvk.md b/components/eamxx/docs/user/multi-instance-mvk.md index 8bbe63818d18..42b7090aad5b 100644 --- a/components/eamxx/docs/user/multi-instance-mvk.md +++ b/components/eamxx/docs/user/multi-instance-mvk.md @@ -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.