Merge pull request #2243 from blattms/construct-cpgrid-from-eclgrid-pointer

Pass a pointer to the EclipseGrid to CpGrid::processEclipseGrid.
This commit is contained in:
Markus Blatt 2019-12-19 11:40:23 +01:00 committed by GitHub
commit 68272d5861
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,