diff --git a/image_analysis/geom_refinement/PostRefine.cpp b/image_analysis/geom_refinement/PostRefine.cpp index 21948c46..25f23ef1 100644 --- a/image_analysis/geom_refinement/PostRefine.cpp +++ b/image_analysis/geom_refinement/PostRefine.cpp @@ -136,8 +136,14 @@ PostRefineResult PostRefineRotationGeometry(const std::vector pts_offset(n_out + 1, 0); - ParallelChunks(n_out, ThreadsForWork(static_cast(n_out), nthreads), [&](int lo, int hi) { + ParallelChunks(n_out, gather_threads, [&](int lo, int hi) { for (int o = lo; o < hi; o++) { size_t keep = 0; for (const auto &r : outcomes[o].reflections) @@ -151,7 +157,7 @@ PostRefineResult PostRefineRotationGeometry(const std::vector pts(pts_offset[n_out]); - ParallelChunks(n_out, ThreadsForWork(static_cast(n_out), nthreads), [&](int lo, int hi) { + ParallelChunks(n_out, gather_threads, [&](int lo, int hi) { for (int o = lo; o < hi; o++) { size_t at = pts_offset[o]; for (const auto &r : outcomes[o].reflections) {