mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
FingerProblem: use elements range generator
This commit is contained in:
parent
8cd61e7240
commit
820cc1e9f9
@ -380,11 +380,8 @@ public:
|
|||||||
// update the history of the hysteresis law
|
// update the history of the hysteresis law
|
||||||
ElementContext elemCtx(this->simulator());
|
ElementContext elemCtx(this->simulator());
|
||||||
|
|
||||||
auto elemIt = this->gridView().template begin<0>();
|
for (const auto& elem : elements(this->gridView())) {
|
||||||
const auto& elemEndIt = this->gridView().template end<0>();
|
elemCtx.updateAll(elem);
|
||||||
for (; elemIt != elemEndIt; ++elemIt) {
|
|
||||||
const auto& elem = *elemIt;
|
|
||||||
elemCtx.updateAll( elem );
|
|
||||||
size_t numDofs = elemCtx.numDof(/*timeIdx=*/0);
|
size_t numDofs = elemCtx.numDof(/*timeIdx=*/0);
|
||||||
for (unsigned scvIdx = 0; scvIdx < numDofs; ++scvIdx)
|
for (unsigned scvIdx = 0; scvIdx < numDofs; ++scvIdx)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user