diff --git a/image_analysis/structure_refinement/Refinement.cpp b/image_analysis/structure_refinement/Refinement.cpp index d360c8f59..609a0fcd5 100644 --- a/image_analysis/structure_refinement/Refinement.cpp +++ b/image_analysis/structure_refinement/Refinement.cpp @@ -4645,7 +4645,10 @@ RefinementResult RefineModel(const gemmi::Structure &placed, const std::vector 1; + // on the CPU each arm on half of the threads - where the lattice admits a twin law, without which the twinned + // arm ends at once and its half would sit idle + const bool halves = on_cpu && settings.population <= 1 && settings.nthreads > 1 && + !RefinementTwinLaws(cell, sg).empty(); RefinementSettings untwinned_settings = settings, twin_settings = settings; if (halves) { twin_settings.nthreads = settings.nthreads / 2;