Filter connections on non-IO ranks, too.

This removes a deadlock experienced for some models
where we have specified connections to non-active cells.

On non-IO ranks we are using the local grid since in the
future there will be no global grid available. Wells connecting
cells not on these processors are neglected anyway.

Closes #2101
This commit is contained in:
Markus Blatt 2019-10-30 13:46:43 +01:00
parent dd2a360e10
commit a597539342

View File

@ -280,6 +280,13 @@ protected:
const auto eclipseGrid = Opm::UgGridHelpers::createEclipseGrid(equilGrid(), this->eclState().getInputGrid());
this->schedule().filterConnections(eclipseGrid);
}
else
{
// for the other processes we filter using the local grid since there
// are models with connections specified to inactive cells
const auto eclipseGrid = Opm::UgGridHelpers::createEclipseGrid(grid(), this->eclState().getInputGrid());
this->schedule().filterConnections(eclipseGrid);
}
}
std::unique_ptr<Grid> grid_;