Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CTDAS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NearRealTimeCTDAS
CTDAS
Commits
37970c75
Commit
37970c75
authored
13 years ago
by
Peters, Wouter
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
da/tm5/observationoperator.py
+3
-0
3 additions, 0 deletions
da/tm5/observationoperator.py
with
3 additions
and
0 deletions
da/tm5/observationoperator.py
+
3
−
0
View file @
37970c75
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment