Use ActiveGridCells instead of EclipseGrid when filtering connections.

The function signature has changed upstream.
This commit is contained in:
Markus Blatt 2019-12-10 11:50:07 +01:00
parent 201887f283
commit e7f7ad2ddc

View File

@ -202,8 +202,9 @@ public:
// for processes that do not hold the global grid we filter here using the local grid. // for processes that do not hold the global grid we filter here using the local grid.
// If we would filter in filterConnection_ our partition would be empty and the connections of all // If we would filter in filterConnection_ our partition would be empty and the connections of all
// wells would be removed. // wells would be removed.
const auto eclipseGrid = Opm::UgGridHelpers::createEclipseGrid(grid(), this->eclState().getInputGrid()); ActiveGridCells activeCells(grid().logicalCartesianSize(),
this->schedule().filterConnections(eclipseGrid); grid().globalCell().data(), grid().size(0));
this->schedule().filterConnections(activeCells);
} }
} }
#endif #endif
@ -290,8 +291,10 @@ protected:
// here would remove all well connections. // here would remove all well connections.
if (equilGrid_) if (equilGrid_)
{ {
const auto eclipseGrid = Opm::UgGridHelpers::createEclipseGrid(equilGrid(), this->eclState().getInputGrid()); ActiveGridCells activeCells(equilGrid().logicalCartesianSize(),
this->schedule().filterConnections(eclipseGrid); equilGrid().globalCell().data(),
equilGrid().size(0));
this->schedule().filterConnections(activeCells);
} }
} }