From e5e6da5978a0c429e762bb426fa99f5fe50272d9 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 12 Dec 2017 11:30:45 +0100 Subject: scripts/turbo-index-slurm: Use --serial-start --- scripts/turbo-index-slurm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/turbo-index-slurm b/scripts/turbo-index-slurm index a0f1bec5..f05c78b9 100755 --- a/scripts/turbo-index-slurm +++ b/scripts/turbo-index-slurm @@ -50,7 +50,11 @@ for FILE in split-events-${RUN}.lst*; do # Job name NAME=`echo $FILE | sed -e "s/split-events-${RUN}.lst/${RUN}-/"` - echo "$NAME: $FILE ---> $STREAM" + # Job number + NUMBER=${NAME##$RUN-} + POS=`expr $NUMBER \* $SPLIT + 1` + + echo "$NAME (serial start $POS): $FILE ---> $STREAM" SLURMFILE="${NAME}.sh" @@ -74,7 +78,7 @@ for FILE in split-events-${RUN}.lst*; do echo "#source /path/to/crystfel/setup.sh" >> $SLURMFILE # Set up environment here (again) if necessary echo >> $SLURMFILE - command="indexamajig -i $FILE -o $STREAMDIR/$STREAM" + command="indexamajig -i $FILE -o $STREAMDIR/$STREAM --serial-start=$POS" command="$command -j \`nproc\` -g $GEOM" #command="$command --peaks=zaef" # Indexing parameters here -- cgit v1.2.3