Skip to content
Snippets Groups Projects
Commit 37970c75 authored by Peters, Wouter's avatar Peters, Wouter
Browse files

needed extra logic to always control the TM5 istart flag correctly

parent 1d25d3eb
No related branches found
No related tags found
No related merge requests found
......@@ -213,11 +213,14 @@ class TM5ObservationOperator(ObservationOperator):
if self.DaCycle['time.restart']: # If this is a restart from a previous cycle, the TM5 model should do a restart
NewItems[self.istartkey] = self.restartvalue
msg = 'Resetting TM5 to perform restart' ; logging.debug(msg)
else:
NewItems[self.istartkey] = self.coldstartvalue # if not, start TM5 'cold'
msg = 'Resetting TM5 to perform cold start' ; logging.debug(msg)
if self.DaCycle['time.sample.window'] != 0: # If this is a restart from a previous time step within the filter lag, the TM5 model should do a restart
NewItems[self.istartkey] = self.restartvalue
msg = 'Resetting TM5 to perform restart' ; logging.debug(msg)
# If neither one is true, simply take the istart value from the tm5.rc file that was read
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment