Skip to content

Commit

Permalink
Merge pull request #4671 from jedwards4b/stop_n_must_be_int
Browse files Browse the repository at this point in the history
stop_n must be int
  • Loading branch information
jedwards4b committed Aug 29, 2024
2 parents d70af96 + e009c57 commit c571384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CIME/SystemTests/system_tests_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit c571384

Please sign in to comment.