Skip to content

Commit 16ff8d7

Browse files
authored
Merge pull request #4701 from jedwards4b/fix_multidriver_mct
logic was incorrect for mct driver
2 parents 5d2db9c + 3e40cdf commit 16ff8d7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

CIME/case/case_submit.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,12 @@ def _submit(
6565
# only checks for the first instance in a multidriver case
6666
if case.get_value("COMP_INTERFACE") == "nuopc":
6767
rpointer = "rpointer.cpl"
68+
if case.get_value("NINST") > 1:
69+
rpointer = rpointer + "_0001"
6870
else:
6971
rpointer = "rpointer.drv"
70-
# Variable MULTI_DRIVER is always true for nuopc so we need to also check NINST > 1
71-
if case.get_value("MULTI_DRIVER") and case.get_value("NINST") > 1:
72-
rpointer = rpointer + "_0001"
72+
if case.get_value("MULTI_DRIVER"):
73+
rpointer = rpointer + "_0001"
7374
expect(
7475
os.path.exists(os.path.join(rundir, rpointer)),
7576
"CONTINUE_RUN is true but this case does not appear to have restart files staged in {} {}".format(

0 commit comments

Comments
 (0)