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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DataAssimilation
DART-WRF-delete_byApril
Commits
325e9ba8
Commit
325e9ba8
authored
2 years ago
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
first config
parent
cb4d0a05
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dartwrf/run_ens.jet.sh
+23
-13
23 additions, 13 deletions
dartwrf/run_ens.jet.sh
with
23 additions
and
13 deletions
dartwrf/run_ens.jet.sh
+
23
−
13
View file @
325e9ba8
module purge
module load
export
SLURM_STEP_GRES
=
none
export
SLURM_STEP_GRES
=
none
## $SLURM_ARRAY_TASK_ID
## $SLURM_ARRAY_TASK_ID
echo
"SLURM_ARRAY_TASK_ID:"
$SLURM_ARRAY_TASK_ID
echo
"SLURM_ARRAY_TASK_ID:"
$SLURM_ARRAY_TASK_ID
EXPNAME
=
<exp.expname>
EXPNAME
=
"OSSE_v1.10_test"
MAINDIR
=
<cluster.wrf_rundir_base>
NAMELIST
=
"namelist.input"
pinning
=(
0-9 10-19 20-29 30-39
)
USERDIR
=
/jetfs/home/lkugler/
DATADIR
=
$USERDIR
SRC_DIR
=
/jetfs/home/lkugler/compile/WRF/WRF-v4.2/run/
IDEAL_EXE
=
/jetfs/home/lkugler/compile/bin/ideal.exe
WRF_EXE
=
/jetfs/home/lkugler/compile/bin/wrf-v4.2_v1.10.dmpar.exe
# VSC support: be careful with correct pinning !
pinning
=(
0-11 12-23 24-35 36-47
)
for
((
n
=
1
;
n<
=
4
;
n++
))
for
((
n
=
1
;
n<
=
4
;
n++
))
do
do
RUNDIR
=
$USERDIR
/run_WRF/
$EXPNAME
/
$IENS
RUNDIR
=
$USERDIR
/run_WRF/
$EXPNAME
/
$IENS
cd
$RUNDIR
cd
$RUNDIR
rm
-r
wrfout_d01_
*
rm
-r
wrfout_d01_
*
echo
'mpirun -genv I_MPI_PIN_PROCESSOR_LIST=${pinning[$n]} -np 1
2
./wrf.exe >/dev/null 2>&1'
echo
'mpirun -genv I_MPI_PIN_PROCESSOR_LIST=${pinning[$n]} -np 1
0
./wrf.exe >/dev/null 2>&1'
mpirun
-genv
I_MPI_PIN_PROCESSOR_LIST
=
${
pinning
[
$n
]
}
-np
1
2
./wrf.exe
>
/dev/null 2>&1
mpirun
-genv
I_MPI_PIN_PROCESSOR_LIST
=
${
pinning
[
$n
]
}
-np
1
0
./wrf.exe
>
/dev/null 2>&1
cd
../
cd
../
done
done
wait
wait
# 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
`
if
[[
$line
==
*
"SUCCESS COMPLETE WRF"
*
]]
;
then
echo
$RUNDIR
'SUCCESS COMPLETE WRF'
else
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