File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ benchmark=no
135135showinput=0
136136exe=
137137walltime=99-99:99:99
138+ ACCOUNT=
138139
139140if [ $# -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
149150do
150151case $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
389393EOF
394+ if [ " $ACCOUNT " != " " ]; then
395+ cat << EOF >> $scriptfile
396+ #SBATCH -A=$ACCOUNT
397+ EOF
398+ fi
390399
391400if [[ $n_openmp_threads -gt 1 ]] || [[ $max_mpi_processes_per_node -lt 1000 ]] ; then
392401cat << EOF >> $scriptfile
You can’t perform that action at this time.
0 commit comments