Add account parameter
This commit is contained in:
@@ -8,6 +8,9 @@ Usage: $0
|
||||
[ --end-temp input ]
|
||||
[ --points input ]
|
||||
[ --samples input ]
|
||||
[ --array input ]
|
||||
[ --time input ]
|
||||
[ --account input (required) ]
|
||||
EOF
|
||||
exit 1
|
||||
}
|
||||
@@ -19,8 +22,9 @@ points_temp=40
|
||||
samples=1000000
|
||||
array_arg=20
|
||||
time_arg="0-00:30:00"
|
||||
account=""
|
||||
|
||||
VALID_ARGS=$(getopt -o h --long help,start-temp:,end-temp:,points:,samples:,array:,time: -- "$@")
|
||||
VALID_ARGS=$(getopt -o h --long help,start-temp:,end-temp:,points:,samples:,array:,time:,account: -- "$@")
|
||||
if [[ $? -ne 0 ]]; then
|
||||
usage
|
||||
fi
|
||||
@@ -57,8 +61,16 @@ do
|
||||
time_arg=$2
|
||||
shift 2
|
||||
;;
|
||||
--account)
|
||||
account=$2
|
||||
shift 2
|
||||
;;
|
||||
--) shift; break ;;
|
||||
esac
|
||||
done
|
||||
|
||||
sbatch --array=$array_arg --time=$time_arg ./jobs/pt.script $start_temp $end_temp $points_temp $samples
|
||||
if [ -z "$account" ]; then
|
||||
usage
|
||||
fi
|
||||
|
||||
sbatch --array=$array_arg --time=$time_arg --account=$account ./slurm_scripts/pt.script $start_temp $end_temp $points_temp $samples
|
||||
|
||||
Reference in New Issue
Block a user