Skip to content

Commit

Permalink
More ninst fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jgfouca committed Jan 22, 2025
1 parent 11e8188 commit 9d6673b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CIME/SystemTests/eri.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def run_phase(self):

ninst = self._case.get_value("NINST")
drvrest = "rpointer.cpl"
if ninst > 1:
if ninst is not None and ninst > 1:
drvrest += "_0001"
drvrest += self._rest_time
self._set_drv_restart_pointer(drvrest)
Expand Down Expand Up @@ -288,7 +288,7 @@ def run_phase(self):
self._case.set_value("HIST_OPTION", stop_option)
self._case.set_value("HIST_N", hist_n)
drvrest = "rpointer.cpl"
if ninst > 1:
if ninst is not None and ninst > 1:
drvrest += "_0001"
drvrest += self._rest_time

Expand Down
2 changes: 1 addition & 1 deletion CIME/SystemTests/restart_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def _case_two_setup(self):
self._case.set_value("REST_OPTION", "never")
ninst = self._case.get_value("NINST")
drvrest = "rpointer.cpl"
if ninst > 1:
if ninst is not None and ninst > 1:
drvrest += "_0001"
drvrest += self._rest_time
self._set_drv_restart_pointer(drvrest)

0 comments on commit 9d6673b

Please sign in to comment.