Pass a pointer to the EclipseGrid to CpGrid::processEclipseGrid.

... instead of a reference This is needed as we only want to read the
full deck and construct the EclipseGrid only on the master process
with rank 0. Hence all other ranks will pass a nullptr to this
function. This will be possible with this move from a reference to a
pointer.
This commit is contained in:
Markus Blatt 2019-12-18 21:39:08 +01:00
parent e84fd74da5
commit ecfbb0e491
2 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ protected:
// create the EQUIL grid
/////
equilGrid_ = new EquilGrid();
equilGrid_->processEclipseFormat(this->eclState().getInputGrid(),
equilGrid_->processEclipseFormat(&(this->eclState().getInputGrid()),
/*isPeriodic=*/false,
/*flipNormals=*/false,
/*clipZ=*/false,

View File

@ -265,7 +265,7 @@ protected:
const std::vector<double>& porv = gridProps.getDoubleGridProperty("PORV").getData();
#endif
grid_.reset(new Dune::CpGrid());
grid_->processEclipseFormat(this->eclState().getInputGrid(),
grid_->processEclipseFormat(&(this->eclState().getInputGrid()),
/*isPeriodic=*/false,
/*flipNormals=*/false,
/*clipZ=*/false,