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
a783896e
Commit
a783896e
authored
2 years ago
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
minor changes
parent
f6ded4c6
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
config/cluster.py
+22
-19
22 additions, 19 deletions
config/cluster.py
dartwrf/link_dart_rttov.py
+1
-1
1 addition, 1 deletion
dartwrf/link_dart_rttov.py
dartwrf/utils.py
+2
-2
2 additions, 2 deletions
dartwrf/utils.py
with
25 additions
and
22 deletions
config/cluster.py
+
22
−
19
View file @
a783896e
...
@@ -42,35 +42,38 @@ slurm_cfg python dictionary, containing options of SLURM
...
@@ -42,35 +42,38 @@ slurm_cfg python dictionary, containing options of SLURM
'
cfg_update = {
"
nodes
"
:
"
2
"
}
'
'
cfg_update = {
"
nodes
"
:
"
2
"
}
'
"""
"""
cluster
=
utils
.
ClusterConfig
(
exp
)
cluster
=
utils
.
ClusterConfig
(
exp
)
cluster
.
name
=
'
srvx1
'
cluster
.
name
=
'
jet
'
cluster
.
max_nproc
=
6
cluster
.
max_nproc
=
12
cluster
.
use_slurm
=
False
cluster
.
use_slurm
=
True
cluster
.
size_jobarray
=
40
# binaries
# binaries
cluster
.
python
=
'
/
users/staff
/lkugler/miniconda3/bin/python
'
cluster
.
python
=
'
/
jetfs/home
/lkugler/miniconda3/
envs/DART/
bin/python
'
cluster
.
python_verif
=
'
/
users/staff
/lkugler/miniconda3/bin/python
'
cluster
.
python_verif
=
'
/
jetfs/home
/lkugler/miniconda3/
envs/enstools/
bin/python
'
cluster
.
ncks
=
'
/
home/swd
/spack/opt/spack/linux-rhel8-skylake_avx512/
gcc-8.5.0/nco-5.0.1-ntu44aoxlvwtr2tsrobfr4lht7cpvcc
f/bin/ncks
'
cluster
.
ncks
=
'
/
jetfs
/spack/opt/spack/linux-rhel8-skylake_avx512/
intel-20.0.2/nco-4.9.3-dhlqiyog7howjmaleyfhm6lkt7ra37x
f/bin/ncks
'
cluster
.
ideal
=
'
'
#
/jetfs/home/lkugler/bin/ideal-v4.3_v1.22.exe'
cluster
.
ideal
=
'
/jetfs/home/lkugler/bin/ideal-v4.3_v1.22.exe
'
cluster
.
wrfexe
=
'
'
#
/jetfs/home/lkugler/bin/wrf-v4.3_v1.22.exe'
cluster
.
wrfexe
=
'
/jetfs/home/lkugler/bin/wrf-v4.3_v1.22.exe
'
cluster
.
container
=
''
cluster
.
container
=
''
# paths for data output
# paths for data output
cluster
.
wrf_rundir_base
=
'
/
users/staff
/lkugler/
AdvDA23
/run_WRF/
'
# path for temporary files
cluster
.
wrf_rundir_base
=
'
/
jetfs/home
/lkugler/
data
/run_WRF/
'
# path for temporary files
cluster
.
dart_rundir_base
=
'
/
users/staff
/lkugler/
AdvDA23
/run_DART/
'
# path for temporary files
cluster
.
dart_rundir_base
=
'
/
jetfs/home
/lkugler/
data
/run_DART/
'
# path for temporary files
cluster
.
archive_base
=
'
/
mnt/
jetfs/
scratch
/lkugler/data/sim_archive/
'
cluster
.
archive_base
=
'
/jetfs/
home
/lkugler/data/sim_archive/
'
# paths used as input
# paths used as input
cluster
.
srcdir
=
'
/users/staff/lkugler/AdvDA23/DART/WRF-4.3/run
'
cluster
.
srcdir
=
'
/jetfs/home/lkugler/data/compile/WRF-4.3/run
'
cluster
.
dart_srcdir
=
'
/users/staff/lkugler/AdvDA23/DART/models/wrf/work
'
cluster
.
dart_srcdir
=
'
/jetfs/home/lkugler/data/compile/DART/DART-10.5.3/models/wrf/work
'
cluster
.
rttov_srcdir
=
'
/users/staff/lkugler/AdvDA23/RTTOV13/rtcoef_rttov13/
'
cluster
.
rttov_srcdir
=
'
/jetfs/home/lkugler/data/compile/RTTOV13/rtcoef_rttov13/
'
cluster
.
scriptsdir
=
'
/users/staff/lkugler/AdvDA23/DART-WRF/dartwrf/
'
cluster
.
scriptsdir
=
'
/jetfs/home/lkugler/DART-WRF/dartwrf/
'
cluster
.
geo_em
=
'
/mnt/jetfs/scratch/lkugler/data/geo_em.d01.nc
'
# templates/run scripts
# other inputs
cluster
.
geo_em
=
'
/jetfs/home/lkugler/data/geo_em.d01.nc
'
cluster
.
obs_impact_filename
=
cluster
.
scriptsdir
+
'
/../templates/impactfactor_T.txt
'
cluster
.
namelist
=
cluster
.
scriptsdir
+
'
/../templates/namelist.input
'
cluster
.
namelist
=
cluster
.
scriptsdir
+
'
/../templates/namelist.input
'
cluster
.
run_WRF
=
cluster
.
scriptsdir
+
'
/run_ens.jet.sh
'
cluster
.
run_WRF
=
'
/jetfs/home/lkugler/DART-WRF/dartwrf
/run_ens.jet.sh
'
cluster
.
slurm_cfg
=
{
"
account
"
:
"
lkugler
"
,
"
partition
"
:
"
compute
"
,
cluster
.
slurm_cfg
=
{
"
account
"
:
"
lkugler
"
,
"
partition
"
:
"
compute
"
,
#"nodelist": "jet07",
"
ntasks
"
:
"
1
"
,
"
ntasks-per-core
"
:
"
1
"
,
"
mem
"
:
"
50G
"
,
"
ntasks
"
:
"
1
"
,
"
ntasks-per-core
"
:
"
1
"
,
"
mem
"
:
"
50G
"
,
"
mail-type
"
:
"
FAIL
"
,
"
mail-user
"
:
"
lukas.kugler@univie.ac.at
"
}
"
mail-type
"
:
"
FAIL
"
,
"
mail-user
"
:
"
lukas.kugler@univie.ac.at
"
}
This diff is collapsed.
Click to expand it.
dartwrf/link_dart_rttov.py
+
1
−
1
View file @
a783896e
import
os
import
os
from
config.cfg
import
exp
from
config.cfg
import
exp
from
config.cluster
import
cluster
from
config.cluster
import
cluster
from
dartwrf.utils
import
symlink
,
copy_scp_srvx8
,
copy
,
sed_inplace
from
dartwrf.utils
import
symlink
,
copy
,
sed_inplace
joinp
=
os
.
path
.
join
joinp
=
os
.
path
.
join
...
...
This diff is collapsed.
Click to expand it.
dartwrf/utils.py
+
2
−
2
View file @
a783896e
...
@@ -22,7 +22,7 @@ class ClusterConfig(object):
...
@@ -22,7 +22,7 @@ class ClusterConfig(object):
Example:
Example:
`/users/abcd/data/sim_archive/experiment1/`
`/users/abcd/data/sim_archive/experiment1/`
"""
"""
return
self
.
archive_base
+
'
/
'
+
self
.
exp
.
expname
return
self
.
archive_base
+
'
/
'
+
self
.
exp
.
expname
+
'
/
'
@property
@property
def
scripts_rundir
(
self
):
def
scripts_rundir
(
self
):
...
@@ -44,7 +44,7 @@ class ClusterConfig(object):
...
@@ -44,7 +44,7 @@ class ClusterConfig(object):
"""
Path to the directory where an ensemble member will run WRF
"""
Path to the directory where an ensemble member will run WRF
Includes the experiment name and the ensemble member index
Includes the experiment name and the ensemble member index
"""
"""
return
self
.
wrf_rundir_base
+
'
/
'
+
self
.
exp
.
expname
+
'
/
'
+
str
(
iens
)
return
self
.
wrf_rundir_base
+
'
/
'
+
self
.
exp
.
expname
+
'
/
'
+
str
(
iens
)
+
'
/
'
def
run_job
(
self
,
cmd
,
jobname
=
''
,
cfg_update
=
dict
(),
depends_on
=
None
):
def
run_job
(
self
,
cmd
,
jobname
=
''
,
cfg_update
=
dict
(),
depends_on
=
None
):
"""
Run scripts in a shell
"""
Run scripts in a shell
...
...
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