From 3e40cdfa30ccd1b6d61b4e29549731a06bf2b258 Mon Sep 17 00:00:00 2001 From: Jim Edwards Date: Wed, 30 Oct 2024 07:37:39 -0600 Subject: [PATCH] logic was incorrect for mct driver --- CIME/case/case_submit.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CIME/case/case_submit.py b/CIME/case/case_submit.py index 70dfe3dec7e..8977cabe1dd 100644 --- a/CIME/case/case_submit.py +++ b/CIME/case/case_submit.py @@ -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(