From e009c578f2158db28a4e2279542e6f6462707031 Mon Sep 17 00:00:00 2001 From: Jim Edwards Date: Thu, 29 Aug 2024 13:34:40 -0600 Subject: [PATCH] stop_n must be int --- CIME/SystemTests/system_tests_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CIME/SystemTests/system_tests_common.py b/CIME/SystemTests/system_tests_common.py index 7295ea67ca1..42e1b897e58 100644 --- a/CIME/SystemTests/system_tests_common.py +++ b/CIME/SystemTests/system_tests_common.py @@ -173,7 +173,7 @@ def _set_restart_interval(self): else: expect(False, f"stop_option {stop_option} not available for this test") - stop_n = stop_n * factor // coupling_secs + stop_n = int(stop_n * factor // coupling_secs) rest_n = math.ceil((stop_n // 2 + 1) * coupling_secs / factor) expect(stop_n > 0, "Bad STOP_N: {:d}".format(stop_n))