-
Notifications
You must be signed in to change notification settings - Fork 179
/
Copy pathload_fv3gfs_modules.sh
executable file
·45 lines (40 loc) · 1.22 KB
/
load_fv3gfs_modules.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
#!/bin/sh
#set -x
###############################################################
# Setup runtime environment by loading modules
ulimit_s=$( ulimit -S -s )
#ulimit -S -s 10000
# Find module command and purge:
source "$HOMEgfs/modulefiles/module-setup.sh.inc"
# Load our modules:
module use "$HOMEgfs/modulefiles"
if [[ -d /lfs3 ]] ; then
# We are on NOAA Jet
module load module_base.jet
elif [[ -d /scratch1 ]] ; then
# We are on NOAA Hera
module load module_base.hera
elif [[ -d /work ]] ; then
# We are on MSU Orion
module load module_base.orion
elif [[ -d /gpfs/hps && -e /etc/SuSE-release ]] ; then
# We are on NOAA Luna or Surge
module load module_base.wcoss_c
elif [[ -L /usrx && "$( readlink /usrx 2> /dev/null )" =~ dell ]] ; then
# We are on NOAA Mars or Venus
module load module_base.wcoss_dell_p3
elif [[ -d /dcom && -d /hwrf ]] ; then
# We are on NOAA Tide or Gyre
module load module_base.wcoss
elif [[ -d /glade ]] ; then
# We are on NCAR Yellowstone
module load module_base.cheyenne
elif [[ -d /lustre && -d /ncrc ]] ; then
# We are on GAEA.
module load module_base.gaea
else
echo WARNING: UNKNOWN PLATFORM
fi
# Restore stack soft limit:
ulimit -S -s "$ulimit_s"
unset ulimit_s