mirror of
https://github.com/OPM/opm-upscaling.git
synced 2025-02-25 18:45:23 -06:00
elasticity_preconditioners: avoid unnecessary copy
This commit is contained in:
parent
cbf4958261
commit
247d4cb432
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user