diff --git a/rugnux/RugnuxScaleMerge.cpp b/rugnux/RugnuxScaleMerge.cpp index 1814d489b..658fadb27 100644 --- a/rugnux/RugnuxScaleMerge.cpp +++ b/rugnux/RugnuxScaleMerge.cpp @@ -1699,6 +1699,7 @@ bool Rugnux::ScaleMergeAndSymmetry(PipelineLocals &p) { rsm->SetSearchMinZeta(0.0); sm_all = scale_and_merge("P1, all observations", true); rsm->SetSearchMinZeta(zeta); + rsm->ReleaseMergeScratch(); // as before the first arm's search sg_opts.merge_isa = result.error_model_isa; // this arm's own error model TimingMark all_arm_mark(logger, "SearchSpaceGroup (all-observation arm)"); alt = SearchSpaceGroup(sm_all.merged, sg_opts); @@ -3309,6 +3310,9 @@ bool Rugnux::ScaleMergeAndSymmetry(PipelineLocals &p) { } adoption_mark.Stop(); TimingMark analyses_mark(logger, "analyses"); + // The answer's merge is made and in `sm`; a merge below (twin law, ledger) refills the arrays. + if (rsm) + rsm->ReleaseMergeScratch(); // --finalist-ledger (see where it is read, below) is folded from a merge of its own: the same // observations in P1. It needs every node of the lattice integrated, which a fixed centred group