mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-09-05 04:40:19 -05:00
eclgenerictracermodel: use elements range generator
This commit is contained in:
@@ -221,10 +221,7 @@ doInit(bool rst, size_t numGridDof,
|
|||||||
std::vector<NeighborSet> neighbors(numGridDof);
|
std::vector<NeighborSet> neighbors(numGridDof);
|
||||||
|
|
||||||
Stencil stencil(gridView_, dofMapper_);
|
Stencil stencil(gridView_, dofMapper_);
|
||||||
auto elemIt = gridView_.template begin<0>();
|
for (const auto& elem : elements(gridView_)) {
|
||||||
const auto elemEndIt = gridView_.template end<0>();
|
|
||||||
for (; elemIt != elemEndIt; ++elemIt) {
|
|
||||||
const auto& elem = *elemIt;
|
|
||||||
stencil.update(elem);
|
stencil.update(elem);
|
||||||
|
|
||||||
for (unsigned primaryDofIdx = 0; primaryDofIdx < stencil.numPrimaryDof(); ++primaryDofIdx) {
|
for (unsigned primaryDofIdx = 0; primaryDofIdx < stencil.numPrimaryDof(); ++primaryDofIdx) {
|
||||||
|
|||||||
Reference in New Issue
Block a user