mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-24 16:30:02 -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
|
||||
ElementContext elemCtx(this->simulator());
|
||||
|
||||
auto elemIt = this->gridView().template begin<0>();
|
||||
const auto& elemEndIt = this->gridView().template end<0>();
|
||||
for (; elemIt != elemEndIt; ++elemIt) {
|
||||
const auto& elem = *elemIt;
|
||||
elemCtx.updateAll( elem );
|
||||
for (const auto& elem : elements(this->gridView())) {
|
||||
elemCtx.updateAll(elem);
|
||||
size_t numDofs = elemCtx.numDof(/*timeIdx=*/0);
|
||||
for (unsigned scvIdx = 0; scvIdx < numDofs; ++scvIdx)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user