Skip to content

Commit 2bc8919

Browse files
authored
Merge pull request #14612 from gforney/master
qfds: add -A parameter for specifying accounting info
2 parents 35973d1 + 8ba3016 commit 2bc8919

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Utilities/Scripts/qfds.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ benchmark=no
135135
showinput=0
136136
exe=
137137
walltime=99-99:99:99
138+
ACCOUNT=
138139

139140
if [ $# -lt 1 ]; then
140141
usage
@@ -145,9 +146,12 @@ commandline=`echo $* | sed 's/-V//' | sed 's/-v//'`
145146

146147
#*** read in parameters from command line
147148

148-
while getopts 'b:d:e:GhHIj:Ln:o:Pp:q:stT:U:vw:y:Y' OPTION
149+
while getopts 'A:b:d:e:GhHIj:Ln:o:Pp:q:stT:U:vw:y:Y' OPTION
149150
do
150151
case $OPTION in
152+
A)
153+
ACCOUNT="$OPTARG"
154+
;;
151155
b)
152156
EMAIL="$OPTARG"
153157
;;
@@ -387,6 +391,11 @@ cat << EOF >> $scriptfile
387391
#SBATCH --nodes=$nodes
388392
#SBATCH --time=$walltime
389393
EOF
394+
if [ "$ACCOUNT" != "" ]; then
395+
cat << EOF >> $scriptfile
396+
#SBATCH -A=$ACCOUNT
397+
EOF
398+
fi
390399

391400
if [[ $n_openmp_threads -gt 1 ]] || [[ $max_mpi_processes_per_node -lt 1000 ]] ; then
392401
cat << EOF >> $scriptfile

0 commit comments

Comments
 (0)