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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DataAssimilation
DART-WRF
Commits
028902ef
Commit
028902ef
authored
2 years ago
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
minor fix
parent
1009eb23
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cycled_exp.py
+2
-2
2 additions, 2 deletions
cycled_exp.py
dartwrf/utils.py
+2
-3
2 additions, 3 deletions
dartwrf/utils.py
dartwrf/workflows.py
+1
-2
1 addition, 2 deletions
dartwrf/workflows.py
with
5 additions
and
7 deletions
cycled_exp.py
+
2
−
2
View file @
028902ef
...
...
@@ -63,7 +63,7 @@ if __name__ == "__main__":
# How long shall we integrate?
timedelta_integrate
=
timedelta_btw_assim
output_restart_interval
=
timedelta_btw_assim
.
total_seconds
()
/
60
if
time
==
last_assim_time
:
#
this_forecast_init.minute in [0,]: # longer forecast every full hour
if
time
==
last_assim_time
:
#
this_forecast_init.minute in [0,]: # longer forecast every full hour
timedelta_integrate
=
forecast_until
-
last_assim_time
# dt.timedelta(hours=4)
output_restart_interval
=
9999
# no restart file after last assim
...
...
@@ -74,7 +74,7 @@ if __name__ == "__main__":
depends_on
=
id
)
# as we have WRF output, we can use own exp path as prior
prior_path_exp
=
cluster
.
archivedir
prior_path_exp
=
w
.
cluster
.
archivedir
id_sat
=
w
.
create_satimages
(
time
,
depends_on
=
id
)
...
...
This diff is collapsed.
Click to expand it.
dartwrf/utils.py
+
2
−
3
View file @
028902ef
...
...
@@ -63,10 +63,9 @@ class ClusterConfig(object):
"""
if
self
.
use_slurm
:
from
slurmpy
import
Slurm
Slurm
(
jobname
,
slurm_kwargs
=
dict
(
self
.
slurm_cfg
,
**
cfg_update
),
return
Slurm
(
jobname
,
slurm_kwargs
=
dict
(
self
.
slurm_cfg
,
**
cfg_update
),
log_dir
=
self
.
log_dir
,
scripts_dir
=
self
.
slurm_scripts_dir
,
**
kwargs
scripts_dir
=
self
.
slurm_scripts_dir
,
).
run
(
cmd
,
depends_on
=
depends_on
)
else
:
print
(
cmd
)
...
...
This diff is collapsed.
Click to expand it.
dartwrf/workflows.py
+
1
−
2
View file @
028902ef
...
...
@@ -138,7 +138,6 @@ class WorkFlows(object):
if input_is_restart: # start WRF in restart mode
"""
id
=
depends_on
restart_flag
=
'
.false.
'
if
not
input_is_restart
else
'
.true.
'
# if False: # doesnt work with restarts at the moment# first_minute:
...
...
@@ -180,7 +179,7 @@ class WorkFlows(object):
if
output_restart_interval
:
args
.
append
(
'
--restart_interval=
'
+
str
(
int
(
float
(
output_restart_interval
))))
id
=
self
.
cluster
.
run_job
(
'
'
.
join
(
args
),
"
preWRF
"
,
cfg_update
=
dict
(
time
=
"
2
"
),
depends_on
=
[
i
d
])
id
=
self
.
cluster
.
run_job
(
'
'
.
join
(
args
),
"
preWRF
"
,
cfg_update
=
dict
(
time
=
"
2
"
),
depends_on
=
[
d
epends_on
])
cmd
=
script_to_str
(
self
.
cluster
.
run_WRF
).
replace
(
'
<exp.expname>
'
,
exp
.
expname
).
replace
(
'
<cluster.wrf_rundir_base>
'
,
self
.
cluster
.
wrf_rundir_base
)
...
...
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