elasticity_preconditioners: avoid unnecessary copy

This commit is contained in:
Arne Morten Kvarving 2024-08-26 15:06:28 +02:00
parent cbf4958261
commit 247d4cb432

View File

@ -44,7 +44,7 @@ Schwarz::type* Schwarz::setup2(std::shared_ptr<Operator>& op,
int nel2 = gv.logicalCartesianSize()[1]; int nel2 = gv.logicalCartesianSize()[1];
rows.resize(nel1/cps*nel2/cps); rows.resize(nel1/cps*nel2/cps);
auto set = gv.leafGridView().indexSet(); const auto& set = gv.leafGridView().indexSet();
for (auto it = gv.leafGridView().begin<0>(), e = gv.leafGridView().end<0>(); for (auto it = gv.leafGridView().begin<0>(), e = gv.leafGridView().end<0>();
it != e; ++it) { it != e; ++it) {
std::array<int, 3> ijk; std::array<int, 3> ijk;