Commit 6ddfbe3f authored by Plaszczynski Stephane's avatar Plaszczynski Stephane
Browse files

setting QSUB_CMD mechanism in scripts

parent 59980b30
......@@ -112,7 +112,15 @@ qstat -j \${JOB_ID} -nenv
eof
echo "**************************************"
cat zerun.sh
#cat zerun.sh
#default qsub command (you may override)
if [ -z "${QSUB_CMD}" ] ; then
QSUB_CMD="qsub -P P_$GROUP -pe multicores 8 -q mc_longlasting -R y -j y -l sps=1"
fi
jobsub="${QSUB_CMD} -o $PWD -N $(basename $zeroot) -t 1-$NCHAINS zerun.sh"
echo "about to run : $jobsub"
echo "OK? [o/n]"
read answer
if [ $answer != 'o' ] ; then
......@@ -120,15 +128,6 @@ echo "exiting"
exit 1
fi
#qsub -P P_$GROUP -t 1-$NCHAINS -pe openmpi_$NCORES $NCORES -q pa_longlasting -l sps=1 -R y -j y -o $PWD -e $PWD -N $(basename $zeroot) zerun.sh
#qsub -P P_$GROUP -t 1-$NCHAINS -pe multicores $NCORES -q mc_longlasting -l sps=1 -R y -j y -o $PWD -e $PWD -N $(basename $zeroot) zerun.sh
QSUB_CMD="qsub -P P_planck_prod -pe openmpi_$NCORES $NCORES -q pa_longlasting -R y -j y"
eval "${QSUB_CMD} -o $PWD -N $(basename $zeroot) -t 1-$NCHAINS zerun.sh"
eval $jobsub
cd - > /dev/null
Markdown is supported
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