Skip to content

Commit

Permalink
Merge pull request #499 from mvertens/feature/fix_erp_dglc_test
Browse files Browse the repository at this point in the history
fix problem with no coupler file written at restart interval
  • Loading branch information
jedwards4b committed Aug 21, 2024
2 parents d8b0865 + 612ba59 commit 864b7ce
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 864b7ce

Please sign in to comment.