Skip to content

Commit af55ea2

Browse files
committed
qfds.sh: Add option to use all available cores
1 parent f2059b5 commit af55ea2

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Utilities/Scripts/qfds.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ else
129129
fi
130130
EMAIL=
131131
casedir=
132+
cram=no
132133
use_default_casedir=
133134
USERMAX=
134135
dir=.
@@ -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
151152
do
152153
case $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
394397
EOF
395398
if [ "$ACCOUNT" != "" ]; then
@@ -418,6 +421,12 @@ cat << EOF >> $scriptfile
418421
EOF
419422
fi
420423

424+
if [ "$cram" == "no" ]; then
425+
cat << EOF >> $scriptfile
426+
#SBATCH --nodes=$nodes
427+
EOF
428+
fi
429+
421430
else # PBS/Torque
422431

423432
cat << EOF >> $scriptfile

0 commit comments

Comments
 (0)