File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 129129fi
130130EMAIL=
131131casedir=
132+ cram=no
132133use_default_casedir=
133134USERMAX=
134135dir=.
@@ -147,7 +148,7 @@ commandline=`echo $* | sed 's/-V//' | sed 's/-v//'`
147148
148149# *** read in parameters from command line
149150
150- while getopts ' A:b:d :e:GhHIj:Ln:o:Pp:q:stT:U:vw:y:Y' OPTION
151+ while getopts ' A:b:cd :e:GhHIj:Ln:o:Pp:q:stT:U:vw:y:Y' OPTION
151152do
152153case $OPTION in
153154 A)
@@ -156,6 +157,9 @@ case $OPTION in
156157 b)
157158 EMAIL=" $OPTARG "
158159 ;;
160+ c)
161+ cram=" yes"
162+ ;;
159163 d)
160164 dir=" $OPTARG "
161165 ;;
@@ -389,7 +393,6 @@ cat << EOF >> $scriptfile
389393#SBATCH --partition=$queue
390394#SBATCH --ntasks=$n_mpi_processes
391395#SBATCH --cpus-per-task=$n_openmp_threads
392- #SBATCH --nodes=$nodes
393396#SBATCH --time=$walltime
394397EOF
395398if [ " $ACCOUNT " != " " ]; then
@@ -418,6 +421,12 @@ cat << EOF >> $scriptfile
418421EOF
419422fi
420423
424+ if [ " $cram " == " no" ]; then
425+ cat << EOF >> $scriptfile
426+ #SBATCH --nodes=$nodes
427+ EOF
428+ fi
429+
421430else # PBS/Torque
422431
423432cat << EOF >> $scriptfile
You can’t perform that action at this time.
0 commit comments