Skip to content
Snippets Groups Projects
Commit 528c7733 authored by Julien  GUGLIELMINI's avatar Julien GUGLIELMINI
Browse files

Added a warning when -f is used outside sbatch

parent e005e4ef
No related branches found
No related tags found
No related merge requests found
......@@ -169,6 +169,9 @@ fi
printf "%-10s -- %s\n" "[INFO]" "wGRR version ${VERSION}" | tee -a ${OUT}.wgrr.log
if [[ $BATCHFLAG == 0 ]] ; then
if [[ $FAST == 1 ]] ; then
printf "%-10s -- %s\n" "[WARNING]" "The fast flag (-f) is useless when not using sbatch" | tee -a ${OUT}.wgrr.log
fi
if [[ $THREADS -gt $(nproc) ]] ; then
printf "%-10s -- %s\n" "[ERROR]" "You required $THREADS threads but your machine has $(nproc) cores." | tee -a ${OUT}.wgrr.log
exit 1
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment