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

link only hybrid files from ref2 #1554

Merged
merged 1 commit into from
May 17, 2017
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
14 changes: 6 additions & 8 deletions scripts/lib/CIME/SystemTests/eri.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ def run_phase(self):
clone2.set_value("HIST_N", hist_n)
clone2.flush()

rundir = clone2.get_value("RUNDIR")
rundir2 = clone2.get_value("RUNDIR")
dout_sr2 = clone2.get_value("DOUT_S_ROOT")

if not os.path.exists(rundir):
os.makedirs(rundir)
if not os.path.exists(rundir2):
os.makedirs(rundir2)

_helper(dout_sr1, refdate_2, refsec_2, rundir)
_helper(dout_sr1, refdate_2, refsec_2, rundir2)

# run ref2 case (all component history files will go to short term archiving)

Expand Down Expand Up @@ -188,17 +188,15 @@ def run_phase(self):

_helper(dout_sr2, refdate_3, refsec_3, rundir)

# the following lines creates the initial component history files for the restart test
for item in glob.glob("%s/*/hist/*nc" % dout_sr2):
# link the hybrid history files from ref2 to the run dir for comparison
for item in glob.iglob("%s/*.hybrid"%rundir2):
newfile = "%s" % item.replace(".ref2", "")
newfile = os.path.basename(newfile)
dst = os.path.join(rundir, newfile)
if os.path.exists(dst):
os.remove(dst)
os.symlink(item, dst)

self._component_compare_copy("hybrid")

# run branch case (short term archiving is off)
self.run_indv()

Expand Down