diff options
author | Thomas White <taw@physics.org> | 2017-12-12 11:30:45 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2017-12-12 11:35:38 +0100 |
commit | e5e6da5978a0c429e762bb426fa99f5fe50272d9 (patch) | |
tree | b0d8f3c91f4ade4a0e211e31d9477a50aaab0cbe | |
parent | ab5ab8f95fe7bbe12eda623ea4950872537c4f4c (diff) |
scripts/turbo-index-slurm: Use --serial-start
-rwxr-xr-x | scripts/turbo-index-slurm | 8 |
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 |