-
Notifications
You must be signed in to change notification settings - Fork 0
/
runics.sh
69 lines (59 loc) · 1.87 KB
/
runics.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/bash -l
#BSUB -P RRFS-T2O
#BSUB -eo test.err
#BSUB -oo test.out
#BSUB -J fv3.c768
#BSUB -W 00:10
#BSUB -q "dev2"
#BSUB -n 16
#BSUB -R span[ptile=4]
#BSUB -R affinity[core(2):distribute=balance]
#
set -x
. /usrx/local/prod/lmod/lmod/init/sh
ulimit -s unlimited
ulimit -a
export HOMEfv3=/gpfs/dell6/emc/modeling/noscrub/emc.campara/fv3lamda/regional_workflow
export PARMfv3=$HOMEfv3/parm
export EXECfv3=$HOMEfv3/exec
export USHfv3=$HOMEfv3/ush
export UTILfv3=$HOMEfv3/util/ush
export LD_LIBRARY_PATH="/gpfs/dell6/emc/modeling/noscrub/Eric.Rogers/fv3lam_for_dellp3.5/sorc/regional_forecast.fd/ccpp/lib/${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
set -x -u -e
date
. ${HOMEfv3}/rocoto/machine-setup.sh
export machine=wcoss_dell_p3.5
if [ "$machine" = "wcoss_dell_p3" ] ; then
. /usrx/local/prod/lmod/lmod/init/sh
elif [ "$machine" = "wcoss_dell_p3.5" ] ; then
. /usrx/local/prod/lmod/lmod/init/sh
elif [ "$machine" = "wcoss_cray" ] ; then
. /opt/modules/default/init/sh
elif [ "$machine" = "hera" ] ; then
. /apps/lmod/lmod/init/sh
elif [ "$machine" = "jet" ] ; then
. /apps/lmod/lmod/init/sh
fi
jobpre=regional_firstgue
module use ${HOMEfv3}/modulefiles/wcoss_dell_p3.5
jobpre=$(echo ${job} | cut -c1-17)
if [ "${jobpre}" = "regional_forecast" ]; then
module load fv3
elif [ "${jobpre}" = "regional_bufrpost" ]; then
module load bufr
elif [ "${jobpre}" = "regional_post_con" ]; then
module load post
elif [ "${jobpre}" = "regional_firstgue" ]; then
module load chgres_cube
elif [ "${jobpre}" = "regional_make_bc_" ]; then
module load chgres_cube
elif [ "${jobpre}" = "regional_postgoes" ]; then
module load post
else
module load regional
fi
module list
exec "$@"
cd /gpfs/dell5/ptmp/Shun.Liu/fv3lamda/tmpnwprd/regional_firstguess_2021081112
EXEC=/gpfs/dell6/emc/modeling/noscrub/Shun.Liu/fv3lamda/regional_workflow/exec/regional_chgres_cube.x
mpirun $EXEC > outtest 2> errtest