@@ -59,7 +59,7 @@ bool PartialSet::setUpPartials(const AtomTypeMix &atomTypeMix, bool half)
5959
6060 // Set up array matrices for partials
6161 dissolve::for_each_pair (
62- ParallelPolicies::par, atomTypeMix_. begin (), atomTypeMix_. end () ,
62+ ParallelPolicies::par, atomTypeMix_,
6363 [&](int n, const AtomTypeData &at1, int m, const AtomTypeData &at2)
6464 {
6565 partials_[{n, m}].setTag (std::format (" {}-{}//Full" , at1.atomTypeName (), at2.atomTypeName ()));
@@ -89,7 +89,7 @@ void PartialSet::setUpHistograms(double rdfRange, double binWidth)
8989 unboundHistograms_.initialise (nTypes, nTypes, half_);
9090
9191 dissolve::for_each_pair (
92- ParallelPolicies::par, 0 , nTypes,
92+ ParallelPolicies::par, nTypes,
9393 [&](int i, int j)
9494 {
9595 fullHistograms_[{i, j}].initialise (0.0 , rdfRange, binWidth);
@@ -113,7 +113,7 @@ void PartialSet::reset()
113113
114114 // Zero partials
115115 dissolve::for_each_pair (
116- ParallelPolicies::par, 0 , atomTypeMix_.nItems (),
116+ ParallelPolicies::par, atomTypeMix_.nItems (),
117117 [&](int i, int j)
118118 {
119119 std::ranges::fill (partials_[{i, j}].values (), 0.0 );
@@ -186,7 +186,7 @@ void PartialSet::formTotals(bool applyConcentrationWeights)
186186 std::fill (total_.values ().begin (), total_.values ().end (), 0.0 );
187187
188188 dissolve::for_each_pair (
189- ParallelPolicies::seq, atomTypeMix_. begin (), atomTypeMix_. end () ,
189+ ParallelPolicies::seq, atomTypeMix_,
190190 [&](int typeI, const AtomTypeData &at1, int typeJ, const AtomTypeData &at2)
191191 {
192192 // Set weighting factor if requested
@@ -229,7 +229,7 @@ void PartialSet::formTRTotals(NeutronWeights weights)
229229 std::fill (total_.values ().begin (), total_.values ().end (), 0.0 );
230230
231231 dissolve::for_each_pair (
232- ParallelPolicies::seq, atomTypeMix_. begin (), atomTypeMix_. end () ,
232+ ParallelPolicies::seq, atomTypeMix_,
233233 [&](int typeI, const AtomTypeData &at1, int typeJ, const AtomTypeData &at2)
234234 {
235235 // Set weighting factor if requested
@@ -280,7 +280,7 @@ bool PartialSet::save(std::string_view prefix, std::string_view tag, std::string
280280
281281 // Write partials
282282 for_each_pair_early (
283- atomTypeMix_. begin (), atomTypeMix_. end () ,
283+ atomTypeMix_,
284284 [&](int typeI, const AtomTypeData &at1, int typeJ, const AtomTypeData &at2) -> EarlyReturn<bool >
285285 {
286286 // Open file and check that we're OK to proceed writing to it
@@ -327,7 +327,7 @@ bool PartialSet::save(std::string_view prefix, std::string_view tag, std::string
327327void PartialSet::adjust (double delta)
328328{
329329 dissolve::for_each_pair (
330- ParallelPolicies::par, atomTypeMix_. begin (), atomTypeMix_. end () ,
330+ ParallelPolicies::par, atomTypeMix_,
331331 [&](int n, const AtomTypeData &at1, int m, const AtomTypeData &at2)
332332 {
333333 partials_[{n, m}] += delta;
@@ -345,7 +345,7 @@ void PartialSet::adjust(double delta)
345345void PartialSet::formPartials (double boxVolume)
346346{
347347 dissolve::for_each_pair (
348- ParallelPolicies::seq, atomTypeMix_. begin (), atomTypeMix_. end () ,
348+ ParallelPolicies::seq, atomTypeMix_,
349349 [&](int n, const AtomTypeData &at1, int m, const AtomTypeData &at2)
350350 {
351351 // Calculate RDFs from histogram data
@@ -450,7 +450,7 @@ void PartialSet::operator+=(const PartialSet &source)
450450 // Loop over partials in source set
451451 const auto &types = source.atomTypeMix ();
452452 dissolve::for_each_pair (
453- ParallelPolicies::seq, types. begin (), types. end () ,
453+ ParallelPolicies::seq, types,
454454 [&](int typeI, const AtomTypeData &atd1, int typeJ, const AtomTypeData &atd2)
455455 {
456456 auto optPairIndex = atomTypeMix_.indexOf (atd1.atomType (), atd2.atomType ());
@@ -482,7 +482,7 @@ void PartialSet::operator-=(const double delta) { adjust(-delta); }
482482void PartialSet::operator *=(const double factor)
483483{
484484 dissolve::for_each_pair (
485- ParallelPolicies::par, 0 , atomTypeMix_.nItems (),
485+ ParallelPolicies::par, atomTypeMix_.nItems (),
486486 [&](auto n, auto m)
487487 {
488488 partials_[{n, m}] *= factor;
@@ -557,7 +557,7 @@ bool PartialSet::deserialise(LineParser &parser, const CoreData &coreData)
557557 emptyBoundPartials_ = false ;
558558
559559 for_each_pair_early (
560- 0 , nTypes,
560+ nTypes,
561561 [&](int typeI, int typeJ) -> EarlyReturn<bool >
562562 {
563563 auto &part = partials_[{typeI, typeJ}];
@@ -657,7 +657,7 @@ bool PartialSet::serialise(LineParser &parser) const
657657
658658 // Write individual Data1D
659659 auto success = for_each_pair_early (
660- 0 , nTypes,
660+ nTypes,
661661 [&](int typeI, int typeJ) -> EarlyReturn<bool >
662662 {
663663 const auto &part = partials_[{typeI, typeJ}];
0 commit comments