Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DART-WRF
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
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DataAssimilation
DART-WRF
Commits
c18e9e2f
Commit
c18e9e2f
authored
3 years ago
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
2823aa0c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scheduler.py
+2
-2
2 additions, 2 deletions
scheduler.py
with
2 additions
and
2 deletions
scheduler.py
+
2
−
2
View file @
c18e9e2f
...
@@ -81,7 +81,7 @@ def wrfinput_insert_wbubble(perturb=True, depends_on=None):
...
@@ -81,7 +81,7 @@ def wrfinput_insert_wbubble(perturb=True, depends_on=None):
return
id
return
id
def
run_ENS
(
begin
,
end
,
depends_on
=
None
,
first_minute
=
True
,
def
run_ENS
(
begin
,
end
,
depends_on
=
None
,
first_minute
=
True
,
input_is_restart
=
Fals
e
,
restart_path
=
False
,
output_restart_interval
=
720
):
input_is_restart
=
Tru
e
,
restart_path
=
False
,
output_restart_interval
=
720
):
"""
Run forecast for 1 minute, save output.
"""
Run forecast for 1 minute, save output.
Then run whole timespan with 5 minutes interval.
Then run whole timespan with 5 minutes interval.
...
@@ -147,7 +147,7 @@ def run_ENS(begin, end, depends_on=None, first_minute=True,
...
@@ -147,7 +147,7 @@ def run_ENS(begin, end, depends_on=None, first_minute=True,
s
=
my_Slurm
(
"
runWRF2
"
,
cfg_update
=
{
"
nodes
"
:
"
1
"
,
"
array
"
:
"
1-
"
+
str
(
exp
.
n_nodes
),
s
=
my_Slurm
(
"
runWRF2
"
,
cfg_update
=
{
"
nodes
"
:
"
1
"
,
"
array
"
:
"
1-
"
+
str
(
exp
.
n_nodes
),
"
time
"
:
str
(
runtime_wallclock_mins_expected
),
"
mem-per-cpu
"
:
"
2G
"
})
"
time
"
:
str
(
runtime_wallclock_mins_expected
),
"
mem-per-cpu
"
:
"
2G
"
})
cmd
=
script_to_str
(
cluster
.
run_WRF
).
replace
(
'
<exp.expname>
'
,
exp
.
expname
cmd
=
script_to_str
(
cluster
.
run_WRF
).
replace
(
'
<exp.expname>
'
,
exp
.
expname
).
replace
(
'
cluster.wrf_rundir_base
'
,
cluster
.
wrf_rundir_base
)
).
replace
(
'
<
cluster.wrf_rundir_base
>
'
,
cluster
.
wrf_rundir_base
)
id
=
s
.
run
(
cmd
,
depends_on
=
[
id
])
id
=
s
.
run
(
cmd
,
depends_on
=
[
id
])
return
id
return
id
...
...
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