@@ -22,11 +22,11 @@ usage ()
22
22
{
23
23
cat 2>&1 << EOF
24
24
25
- Usage: $myname model_dir compiler
25
+ Usage: $myname model_dir compiler
26
26
Required:
27
27
model_dir : path to model dir of WW3 source
28
- Optional:
29
- compiler : intel (default) or gnu
28
+ Optional:
29
+ compiler : intel (default) or gnu
30
30
EOF
31
31
}
32
32
36
36
main_dir=" $1 " ; shift
37
37
if [ ! $# = 0 ]
38
38
then
39
- compiler=" $1 " ; shift
40
- else
39
+ compiler=" $1 " ; shift
40
+ else
41
41
compiler=' intel'
42
- fi
42
+ fi
43
43
else
44
44
usage
45
45
exit 1
46
46
fi
47
-
48
-
47
+
48
+
49
49
50
50
# Convert main_dir to absolute path
51
51
main_dir=" ` cd $main_dir 1> /dev/null 2>&1 && pwd` "
60
60
modbacio=' bacio/2.4.1'
61
61
modg2=' g2/3.4.5'
62
62
modw3emc=' w3emc/2.10.0'
63
- modesmf=' esmf/8.5 .0'
63
+ modesmf=' esmf/8.6 .0'
64
64
modscotch=' scotch/7.0.4'
65
65
66
66
# Set batchq queue, choose modules and other custom variables to fit system and
67
67
# to define headers etc (default to original version if empty)
68
68
ishera=` hostname | grep hfe`
69
- isorion=` hostname | grep Orion `
69
+ isorion=` hostname | grep orion `
70
70
ishercules=` hostname | grep hercules`
71
71
if [ $ishera ]
72
72
then
73
73
batchq=' slurm'
74
74
if [ $compiler = " intel" ]
75
- then
75
+ then
76
76
spackstackpath=' /scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-1.6.0/envs/unified-env-rocky8/install/modulefiles/Core'
77
77
modcomp=' stack-intel/2021.5.0'
78
78
modmpi=' stack-intel-oneapi-mpi/2021.5.1'
79
79
metispath=' /scratch1/NCEPDEV/climate/Matthew.Masarik/waves/opt/hera/intel/spack-stack/1.6.0/parmetis-4.0.3/install'
80
80
modcmake=' cmake/3.23.1'
81
81
elif [ $compiler = " gnu" ]
82
- then
82
+ then
83
83
spackstackpath=' /scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-1.6.0/envs/unified-env-rocky8/install/modulefiles/Core'
84
84
modcomp=' stack-gcc/9.2.0'
85
85
modmpi=' stack-openmpi/4.1.5'
86
86
metispath=' /scratch1/NCEPDEV/climate/Matthew.Masarik/waves/opt/hera/gnu/spack-stack/1.6.0/parmetis-4.0.3/install'
87
87
modcmake=' cmake/3.23.1'
88
- else
89
- echo " Compiler $compiler not supported on hera"
90
- exit 1
91
- fi
88
+ else
89
+ echo " Compiler $compiler not supported on hera"
90
+ exit 1
91
+ fi
92
92
elif [ $isorion ]
93
93
then
94
94
if [ $compiler = " intel" ]
95
95
then
96
96
batchq=' slurm'
97
- spackstackpath=' /work/noaa/epic/role-epic/spack-stack/orion/spack-stack-1.6.0/envs/unified-env/install/modulefiles/Core'
98
- modcomp=' stack-intel/2022.0.2 '
99
- modmpi=' stack-intel-oneapi-mpi/2021.5.1 '
97
+ spackstackpath=' /work/noaa/epic/role-epic/spack-stack/orion/spack-stack-1.6.0/envs/unified-env-rocky9 /install/modulefiles/Core'
98
+ modcomp=' stack-intel/2021.9.0 '
99
+ modmpi=' stack-intel-oneapi-mpi/2021.9.0 '
100
100
metispath=' /work/noaa/marine/Matthew.Masarik/waves/opt/orion/intel/spack-stack/1.6.0/parmetis-4.0.3/install'
101
101
modcmake=' cmake/3.23.1'
102
102
else
103
- echo " Compiler $compiler not supported on orion"
103
+ echo " Compiler $compiler not supported on orion"
104
104
exit 1
105
- fi
106
- elif [ $ishercules ]
107
- then
105
+ fi
106
+ elif [ $ishercules ]
107
+ then
108
108
batchq=' slurm'
109
109
if [ $compiler = " intel" ]
110
110
then
@@ -114,15 +114,15 @@ EOF
114
114
metispath=' /work/noaa/marine/Matthew.Masarik/waves/opt/hercules/intel/spack-stack/1.6.0/parmetis-4.0.3/install'
115
115
modcmake=' cmake/3.23.1'
116
116
elif [ $compiler = " gnu" ]
117
- then
117
+ then
118
118
spackstackpath=' /work/noaa/epic/role-epic/spack-stack/hercules/spack-stack-1.6.0/envs/unified-env/install/modulefiles/Core'
119
119
spackstackpath2=' /work/noaa/epic/role-epic/spack-stack/hercules/modulefiles'
120
120
modcomp=' stack-gcc/12.2.0'
121
121
modmpi=' stack-mvapich2/2.3.7'
122
122
metispath=' /work/noaa/marine/Matthew.Masarik/waves/opt/hercules/gnu/spack-stack/1.6.0/parmetis-4.0.3/install'
123
123
modcmake=' cmake/3.23.1'
124
124
else
125
- echo " Compiler $compiler not supported on hercules"
125
+ echo " Compiler $compiler not supported on hercules"
126
126
exit 1
127
127
fi
128
128
else
195
195
echo " module use $spackstackpath " >> matrix.head
196
196
if [ ! -z $spackstackpath2 ]; then
197
197
echo " module use $spackstackpath2 " >> matrix.head
198
- fi
198
+ fi
199
199
echo " module load $modcomp " >> matrix.head
200
200
echo " module load $modmpi " >> matrix.head
201
201
echo " module load $modcmake " >> matrix.head
0 commit comments