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.
// If we would filter in filterConnection_ our partition would be empty and the connections of all
// wells would be removed.
const auto eclipseGrid = Opm::UgGridHelpers::createEclipseGrid(grid(), this->eclState().getInputGrid());
this->schedule().filterConnections(eclipseGrid);
ActiveGridCells activeCells(grid().logicalCartesianSize(),
grid().globalCell().data(), grid().size(0));
this->schedule().filterConnections(activeCells);
}
}
#endif
@ -290,8 +291,10 @@ protected:
// here would remove all well connections.
if (equilGrid_)
{
const auto eclipseGrid = Opm::UgGridHelpers::createEclipseGrid(equilGrid(), this->eclState().getInputGrid());
this->schedule().filterConnections(eclipseGrid);
ActiveGridCells activeCells(equilGrid().logicalCartesianSize(),
equilGrid().globalCell().data(),
equilGrid().size(0));
this->schedule().filterConnections(activeCells);
}
}