Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DART-WRF-delete_byApril
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Monitor
Service Desk
Analyze
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-delete_byApril
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 load intel-parallel-studio/composer.2020.2-intel-20.0.2-zuot22y
\
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
EXPNAME
=
<exp.expname>
MAINDIR
=
<cluster.wrf_rundir_base>
pinning
=(
0-9 10-19 20-29 30-39
)
for
((
n
=
1
;
n<
=
4
;
n++
))
do
RUNDIR
=
$USERDIR
/run_WRF/
$EXPNAME
/
$IENS
IENS
=
$SLURM_ARRAY_TASK_ID
RUNDIR
=
$MAINDIR
/
$EXPNAME
/
$IENS
echo
"ENSEMBLE NR: "
$IENS
" in "
$RUNDIR
cd
$RUNDIR
rm
-r
wrfout_d01_
*
echo
'mpirun -genv I_MPI_PIN_PROCESSOR_LIST=${pinning[$n]} -np 10 ./wrf.exe >/dev/null 2>&1'
mpirun
-genv
I_MPI_PIN_PROCESSOR_LIST
=
${
pinning
[
$n
]
}
-np
10 ./wrf.exe
>
/dev/null 2>&1
cd
../
done
wait
rm
-rf
rsl.out.0
*
echo
"mpirun -np 10 ./wrf.exe"
mpirun
-np
10 ./wrf.exe
# error checking
for
((
n
=
1
;
n<
=
4
;
n++
))
do
IENS
=
"
$((
((
$SLURM_ARRAY_TASK_ID
-
1
)*
4
)
+
$n
))
"
RUNDIR
=
$MAINDIR
/
$EXPNAME
/
$IENS
cd
$RUNDIR
line
=
`
tail
-n
1 rsl.out.0000
`
line
=
`
tail
-n
2 rsl.out.0000
`
if
[[
$line
==
*
"SUCCESS COMPLETE WRF"
*
]]
;
then
echo
$RUNDIR
'SUCCESS COMPLETE WRF'
...
...
@@ -34,4 +25,3 @@ do
echo
$RUNDIR
$line
exit
1
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