Skip to content

Commit

Permalink
fix problem with no coupler file written at restart interval
Browse files Browse the repository at this point in the history
  • Loading branch information
mvertens committed Aug 20, 2024
1 parent d8b0865 commit 612ba59
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cime_config/runseq/driver_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,12 @@ def __compute_glc(self, case, coupling_times):
glc_coupling_time = 86400
elif (comp_glc == 'dglc'):
glc_coupling_time = coupling_times["glc_cpl_dt"]
stop_option = case.get_value('STOP_OPTION')
stop_n = case.get_value('STOP_N')
if stop_option == 'nsteps':
glc_coupling_time = stop_n*coupling_times["atm_cpl_dt"]
is_test = case.get_value("TEST")
if not is_test:
stop_option = case.get_value('STOP_OPTION')
if stop_option == 'nsteps':
stop_n = case.get_value('STOP_N')
glc_coupling_time = stop_n*coupling_times["atm_cpl_dt"]
elif (comp_glc == 'xglc'):
glc_coupling_time = coupling_times["glc_cpl_dt"]
else:
Expand Down

0 comments on commit 612ba59

Please sign in to comment.