From: Pierre Gueth Date: Tue, 31 Jan 2012 14:58:15 +0000 (+0100) Subject: perturbation amplitude and params file on cluster X-Git-Tag: v1.4.0~177^2~30 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=0a492ae26676b176ed0a2b18b7b3a92ecf5596f0;p=clitk.git perturbation amplitude and params file on cluster --- diff --git a/cluster_tools/gate_run_submit_cluster.sh b/cluster_tools/gate_run_submit_cluster.sh index ab772dd..513e644 100755 --- a/cluster_tools/gate_run_submit_cluster.sh +++ b/cluster_tools/gate_run_submit_cluster.sh @@ -45,6 +45,11 @@ test -z "${PARAM}" && echo "no param" || echo "param is ${PARAM}" echo "using release $(basename ${RELEASEDIR})" echo "submitting ${NJOBS} jobs" +PARAMFILE="${OUTPUTDIR}/params.txt" +echo "njobs = ${NJOBS}" >> "${PARAMFILE}" +echo "macro = ${MACROFILE}" >> "${PARAMFILE}" +test -z "${PARAM}" || echo "param = ${PARAM}" >> "${PARAMFILE}" + while test $NJOBS -gt 0; do qsub -N "gatejob.${RUNID}" -o "${OUTPUTDIR}" \ -v "PARAM=\"${PARAM}\",INDEX=${NJOBS},INDEXMAX=${NJOBSMAX},SCRIPTDIR=${SCRIPTDIR},OUTPUTDIR=${OUTPUTDIR},RELEASEDIR=${RELEASEDIR},MACROFILE=${MACROFILE},MACRODIR=${MACRODIR}" \