diff options
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r-- | src/indexamajig.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index f6ff129c..e4da883a 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -458,6 +458,13 @@ static error_t parse_arg(int key, char *arg, struct argp_state *state) } break; + case 414 : + if (sscanf(arg, "%d", &args->iargs.n_threads) != 1) + { + ERROR("Invalid value for --max-indexer-threads\n"); + return EINVAL; + } + break; /* ---------- Integration ---------- */ case 501 : @@ -670,6 +677,7 @@ int main(int argc, char *argv[]) args.iargs.no_image_data = 0; args.iargs.no_mask_data = 0; args.iargs.wavelength_estimate = NAN; + args.iargs.n_threads = 1; argp_program_version_hook = show_version; @@ -769,6 +777,8 @@ int main(int argc, char *argv[]) {"no-cell-combinations", 412, NULL, OPTION_HIDDEN, NULL}, {"wavelength-estimate", 413, "metres", 0, "Estimate of the incident radiation wavelength, in metres."}, + {"max-indexer-threads", 414, "n", 0, + "Maximum number of threads allowed for indexing engines."}, {NULL, 0, 0, OPTION_DOC, "Integration options:", 5}, {"integration", 501, "method", OPTION_NO_USAGE, "Integration method"}, @@ -971,6 +981,7 @@ int main(int argc, char *argv[]) args.iargs.tols, flags, args.iargs.wavelength_estimate, + args.iargs.n_threads, taketwo_opts, xgandalf_opts, pinkindexer_opts, |