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
e783d594
Commit
e783d594
authored
2 years ago
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
jet config
parent
e8dd49ac
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
dartwrf/run_ens.jet.sh
+17
-27
17 additions, 27 deletions
dartwrf/run_ens.jet.sh
with
17 additions
and
27 deletions
dartwrf/run_ens.jet.sh
+
17
−
27
View file @
e783d594
module purge
module purge
module load intel-parallel-studio/composer.2020.2-intel-20.0.2-zuot22y
\
module load intel-parallel-studio/composer.2020.2-intel-20.0.2-zuot22y
\
netcdf-fortran/4.5.3-intel-20.0.2-irdm5gq
netcdf-fortran/4.5.3-intel-20.0.2-irdm5gq
#
export SLURM_STEP_GRES=none
export
SLURM_STEP_GRES
=
none
echo
"SLURM_ARRAY_TASK_ID:"
$SLURM_ARRAY_TASK_ID
echo
"SLURM_ARRAY_TASK_ID:"
$SLURM_ARRAY_TASK_ID
EXPNAME
=
<exp.expname>
EXPNAME
=
<exp.expname>
MAINDIR
=
<cluster.wrf_rundir_base>
MAINDIR
=
<cluster.wrf_rundir_base>
pinning
=(
0-9 10-19 20-29 30-39
)
for
((
n
=
1
;
n<
=
4
;
n++
))
IENS
=
$SLURM_ARRAY_TASK_ID
do
RUNDIR
=
$MAINDIR
/
$EXPNAME
/
$IENS
RUNDIR
=
$USERDIR
/run_WRF/
$EXPNAME
/
$IENS
echo
"ENSEMBLE NR: "
$IENS
" in "
$RUNDIR
cd
$RUNDIR
cd
$RUNDIR
rm
-r
wrfout_d01_
*
rm
-rf
rsl.out.0
*
echo
'mpirun -genv I_MPI_PIN_PROCESSOR_LIST=${pinning[$n]} -np 10 ./wrf.exe >/dev/null 2>&1'
echo
"mpirun -np 10 ./wrf.exe"
mpirun
-genv
I_MPI_PIN_PROCESSOR_LIST
=
${
pinning
[
$n
]
}
-np
10 ./wrf.exe
>
/dev/null 2>&1
mpirun
-np
10 ./wrf.exe
cd
../
done
wait
# error checking
# error checking
for
((
n
=
1
;
n<
=
4
;
n++
))
line
=
`
tail
-n
2 rsl.out.0000
`
do
IENS
=
"
$((
((
$SLURM_ARRAY_TASK_ID
-
1
)*
4
)
+
$n
))
"
RUNDIR
=
$MAINDIR
/
$EXPNAME
/
$IENS
cd
$RUNDIR
line
=
`
tail
-n
1 rsl.out.0000
`
if
[[
$line
==
*
"SUCCESS COMPLETE WRF"
*
]]
;
if
[[
$line
==
*
"SUCCESS COMPLETE WRF"
*
]]
;
then
then
echo
$RUNDIR
'SUCCESS COMPLETE WRF'
echo
$RUNDIR
'SUCCESS COMPLETE WRF'
...
@@ -34,4 +25,3 @@ do
...
@@ -34,4 +25,3 @@ do
echo
$RUNDIR
$line
echo
$RUNDIR
$line
exit
1
exit
1
fi
fi
done
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