Skip to content

Commit

Permalink
fix dglc setting and remove end run alarm for the moment
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Aug 21, 2024
1 parent 3677094 commit ee628d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
3 changes: 2 additions & 1 deletion cime_config/namelist_definition_drv.xml
Original file line number Diff line number Diff line change
Expand Up @@ -233,12 +233,13 @@
</values>
</entry>

<!-- not yet fully implemented, set to false -->
<entry id="write_restart_at_endofrun">
<type>logical</type>
<category>nuopc</category>
<group>ALLCOMP_attributes</group>
<values>
<value>.true.</value>
<value>.false.</value>
<value rest_option='none'>.false.</value>
<value rest_option='never'>.false.</value>
</values>
Expand Down
12 changes: 2 additions & 10 deletions cime_config/runseq/driver_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def __compute_glc(self, case, coupling_times):
# However will still need to call the exchange at the end if the stop_option
# is nsteps or days - or otherwise just every ndays
# Note that nsteps is the minimum component coupling time
if (comp_glc == 'cism'):
if comp_glc == 'cism':
glc_coupling_time = coupling_times["glc_cpl_dt"]
if not case.get_value("CISM_EVOLVE"):
stop_option = case.get_value('STOP_OPTION')
Expand All @@ -77,15 +77,7 @@ def __compute_glc(self, case, coupling_times):
glc_coupling_time = stop_n * 86400
else:
glc_coupling_time = 86400
elif (comp_glc == 'dglc'):
glc_coupling_time = coupling_times["glc_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'):
elif comp_glc == 'dglc' or comp_glc == 'xglc':
glc_coupling_time = coupling_times["glc_cpl_dt"]
else:
glc_coupling_time = 0
Expand Down

0 comments on commit ee628d1

Please sign in to comment.