diff options
author | Thomas White <taw@physics.org> | 2021-03-29 15:19:50 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-03-29 15:19:50 +0200 |
commit | 0b0f4084ddcde9bf681ca1b8a7bd0ff75b65243f (patch) | |
tree | 816cd07395ab1b90469a6eb383c2d8c00d2142bd | |
parent | df7eb394372b363b95080ccac8f02f8bae9397f7 (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.
-rw-r--r-- | src/indexamajig.c | 2 |
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); |