grid_submit.sh
Go to the documentation of this file.
1 #!/bin/bash
2 
3 export run_exe="/minerva/app/users/laliaga/NEW_RW_OUTSIDE_MINERVA2/run_fluxpack.sh"
4 #use this executable for jobsub_client:
5 #export run_exe="file:///minerva/app/users/laliaga/NEW_RW_OUTSIDE_MINERVA2/run_fluxpack.sh"
6 
7 export GRID="--OS=SL6 -g --opportunistic --use_gftp"
8 export NJOBS="500"
9 
10 export OUTDIR="/minerva/data/users/laliaga/FLUX_PACK/GRID"
11 mkdir -p $OUTDIR
12 chmod 01775 $OUTDIR
13 
14 #BEAMS=( "le010z185i" "le010z-185i" "le010z-185i" )
15 #MODS=( "mediumBYDET" "noCorr" "mediumBYDET" )
16 
17 BEAMS=( "le010z185i" "le010z-185i" )
18 MODS=( "uhighBYDET" "uhighBYDET" )
19 
20 len=${#BEAMS[*]}
21 
22 for (( i=0; i<len; i++ ))
23 do
24  export BEAMCONFIG=${BEAMS[${i}]}
25  export MOD=${MODS[${i}]}
26 
27  export NTUPLEDIR="${OUTDIR}/${BEAMCONFIG}/${MOD}"
28  export LOGDIR="${NTUPLEDIR}/log"
29 
30  export LOGFILE="${LOGDIR}/fluxpack_${BEAMCONFIG}_${MOD}_\${PROCESS}.log"
31 
32  mkdir -p $NTUPLEDIR
33  chmod 01775 $NTUPLEDIR
34  mkdir -p $LOGDIR
35  chmod 01775 $LOGDIR
36 
37  jobsub $GRID -N $NJOBS -dLEO $NTUPLEDIR -L $LOGFILE ${run_exe} $MOD $BEAMCONFIG
38 #use next line for jobsub_client:
39 #jobsub_submit.py -M --resource-provides=usage_model=DEDICATED --OS=SL6 --group=minerva -dLEO $NTUPLEDIR -L $LOGFILE ${run_exe} $MOD $BEAMCONFIG
40 
41 done
42 
43 
44