mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
FvBaseLinearizer: use elements range generator
This commit is contained in:
parent
a8bbe5549c
commit
91762ace6f
@ -341,10 +341,7 @@ private:
|
|||||||
using NeighborSet = std::set< unsigned >;
|
using NeighborSet = std::set< unsigned >;
|
||||||
std::vector<NeighborSet> sparsityPattern(model.numTotalDof());
|
std::vector<NeighborSet> sparsityPattern(model.numTotalDof());
|
||||||
|
|
||||||
ElementIterator elemIt = gridView_().template begin<0>();
|
for (const auto& elem : elements(gridView_())) {
|
||||||
const ElementIterator elemEndIt = gridView_().template end<0>();
|
|
||||||
for (; elemIt != elemEndIt; ++elemIt) {
|
|
||||||
const Element& elem = *elemIt;
|
|
||||||
stencil.update(elem);
|
stencil.update(elem);
|
||||||
|
|
||||||
for (unsigned primaryDofIdx = 0; primaryDofIdx < stencil.numPrimaryDof(); ++primaryDofIdx) {
|
for (unsigned primaryDofIdx = 0; primaryDofIdx < stencil.numPrimaryDof(); ++primaryDofIdx) {
|
||||||
|
Loading…
Reference in New Issue
Block a user