Skip to content

Commit

Permalink
Merge pull request #4701 from jedwards4b/fix_multidriver_mct
Browse files Browse the repository at this point in the history
logic was incorrect for mct driver
  • Loading branch information
jedwards4b authored Nov 1, 2024
2 parents 5d2db9c + 3e40cdf commit 16ff8d7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CIME/case/case_submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,12 @@ def _submit(
# only checks for the first instance in a multidriver case
if case.get_value("COMP_INTERFACE") == "nuopc":
rpointer = "rpointer.cpl"
if case.get_value("NINST") > 1:
rpointer = rpointer + "_0001"
else:
rpointer = "rpointer.drv"
# Variable MULTI_DRIVER is always true for nuopc so we need to also check NINST > 1
if case.get_value("MULTI_DRIVER") and case.get_value("NINST") > 1:
rpointer = rpointer + "_0001"
if case.get_value("MULTI_DRIVER"):
rpointer = rpointer + "_0001"
expect(
os.path.exists(os.path.join(rundir, rpointer)),
"CONTINUE_RUN is true but this case does not appear to have restart files staged in {} {}".format(
Expand Down

0 comments on commit 16ff8d7

Please sign in to comment.