Another TURBINE_PREALLOCATION fix
@@ -67,13 +67,18 @@ then
return 0
fi
-JOB_ID=$( echo $( ${SUBMIT_COMMAND} ) | grep -o "[1-9][0-9]*$" )
+if (( ! TURBINE_PREALLOCATION ))
+then
+ JOB_ID=$( echo $( ${SUBMIT_COMMAND} ) | grep -o "[1-9][0-9]*$" )
# JOB_ID must be an integer:
if [[ ${JOB_ID} == "" || ${JOB_ID} != <-> ]]
then
abort "sbatch failed!"
fi
+else
+ JOB_ID=UNKNOWN
+fi
declare JOB_ID
# Fill in turbine.log
