From 612ba59092d49a99938a3c8c6d18cc29ca51f527 Mon Sep 17 00:00:00 2001 From: Mariana Vertenstein Date: Tue, 20 Aug 2024 16:30:46 +0200 Subject: [PATCH] fix problem with no coupler file written at restart interval --- cime_config/runseq/driver_config.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cime_config/runseq/driver_config.py b/cime_config/runseq/driver_config.py index 7b8756e1..48dca7ba 100644 --- a/cime_config/runseq/driver_config.py +++ b/cime_config/runseq/driver_config.py @@ -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: