From 0b0f4084ddcde9bf681ca1b8a7bd0ff75b65243f Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 29 Mar 2021 15:19:50 +0200 Subject: 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. --- src/indexamajig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3