aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-12-12 11:30:45 +0100
committerThomas White <taw@physics.org>2017-12-12 11:35:38 +0100
commite5e6da5978a0c429e762bb426fa99f5fe50272d9 (patch)
treeb0d8f3c91f4ade4a0e211e31d9477a50aaab0cbe /scripts
parentab5ab8f95fe7bbe12eda623ea4950872537c4f4c (diff)
scripts/turbo-index-slurm: Use --serial-start
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/turbo-index-slurm8
1 files 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