aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-03-29 15:19:50 +0200
committerThomas White <taw@physics.org>2021-03-29 15:19:50 +0200
commit0b0f4084ddcde9bf681ca1b8a7bd0ff75b65243f (patch)
tree816cd07395ab1b90469a6eb383c2d8c00d2142bd /src
parentdf7eb394372b363b95080ccac8f02f8bae9397f7 (diff)
indexamajig: Don't write harvest file if serial start is >1
This will avoid multiple indexamajig processes from overwriting the others' files when running a batch job.
Diffstat (limited to 'src')
-rw-r--r--src/indexamajig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index 589fe6ed..346ceb91 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -1201,7 +1201,7 @@ int main(int argc, char *argv[])
stream_write_target_cell(st, args.iargs.cell);
stream_write_indexing_methods(st, args.indm_str);
- if ( args.harvest_file != NULL ) {
+ if ( (args.harvest_file != NULL) && (args.serial_start <= 1) ) {
write_harvest_file(&args.iargs, args.harvest_file,
args.if_multi, args.if_refine, args.if_retry,
args.if_peaks, args.if_checkcell);