aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/index.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-03-11 15:33:05 +0100
committerThomas White <taw@physics.org>2021-03-11 16:10:54 +0100
commit4330d385f145fcc3e47c7398293e69268cec5d60 (patch)
tree54e4425984569fa9aac30eda8079682d6af17aba /libcrystfel/src/index.c
parentd47c903416fb98701cda2c90e755c4b3e30d9478 (diff)
indexamajig: Add --max-indexer-threads
This is a more general replacement for --pinkIndexer-thread-count.
Diffstat (limited to 'libcrystfel/src/index.c')
-rw-r--r--libcrystfel/src/index.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c
index e0959657..6d1828a9 100644
--- a/libcrystfel/src/index.c
+++ b/libcrystfel/src/index.c
@@ -69,6 +69,7 @@ struct _indexingprivate
UnitCell *target_cell;
double tolerance[6];
double wavelength_estimate;
+ int n_threads;
int n_methods;
IndexingMethod *methods;
@@ -361,6 +362,7 @@ IndexingPrivate *setup_indexing(const char *method_list,
float *tols,
IndexingFlags flags,
double wavelength_estimate,
+ int n_threads,
struct taketwo_options *ttopts,
struct xgandalf_options *xgandalf_opts,
struct pinkIndexer_options *pinkIndexer_opts,
@@ -473,6 +475,7 @@ IndexingPrivate *setup_indexing(const char *method_list,
ipriv->n_methods = n;
ipriv->flags = flags;
ipriv->wavelength_estimate = wavelength_estimate;
+ ipriv->n_threads = n_threads;
if ( cell != NULL ) {
ipriv->target_cell = cell_new_from_cell(cell);
@@ -682,7 +685,7 @@ static int try_indexer(struct image *image, IndexingMethod indm,
case INDEXING_PINKINDEXER :
set_last_task(last_task, "indexing:pinkindexer");
- r = run_pinkIndexer(image, mpriv);
+ r = run_pinkIndexer(image, mpriv, ipriv->n_threads);
break;
case INDEXING_XGANDALF :