mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user