mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
MultiPhaseBaseProblem: use elements range generator
This commit is contained in:
parent
96913df6c9
commit
85ac4160ee
@ -321,12 +321,8 @@ public:
|
||||
ElementContext elemCtx( this->simulator() );
|
||||
auto gridView = this->simulator().vanguard().gridView();
|
||||
auto& grid = this->simulator().vanguard().grid();
|
||||
auto elemIt = gridView.template begin</*codim=*/0, Dune::Interior_Partition>();
|
||||
auto elemEndIt = gridView.template end</*codim=*/0, Dune::Interior_Partition>();
|
||||
for (; elemIt != elemEndIt; ++elemIt)
|
||||
{
|
||||
const auto& element = *elemIt ;
|
||||
elemCtx.updateAll( element );
|
||||
for (const auto& element : elements(gridView, Dune::Partitions::interior)) {
|
||||
elemCtx.updateAll(element);
|
||||
|
||||
// HACK: this should better be part of an AdaptionCriterion class
|
||||
for (unsigned phaseIdx = 0; phaseIdx < numPhases; ++phaseIdx) {
|
||||
|
Loading…
Reference in New Issue
Block a user