From e7f7ad2ddcf326fda1d9562b1816afbe6a164d7f Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Tue, 10 Dec 2019 11:50:07 +0100 Subject: [PATCH] Use ActiveGridCells instead of EclipseGrid when filtering connections. The function signature has changed upstream. --- ebos/eclcpgridvanguard.hh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ebos/eclcpgridvanguard.hh b/ebos/eclcpgridvanguard.hh index af7009035..f68ec43a9 100644 --- a/ebos/eclcpgridvanguard.hh +++ b/ebos/eclcpgridvanguard.hh @@ -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); } }