Using API get3DProperties()

This commit is contained in:
Pål Grønås Drange
2016-04-11 15:15:27 +02:00
parent 77fc26475b
commit fd9f67ae55
5 changed files with 8 additions and 8 deletions

View File

@@ -95,7 +95,7 @@ namespace Opm
// get the pore volume multipliers from the EclipseState
std::vector<double> multpv(numCartesianCells, 1.0);
const auto& eclProps = eclState->getEclipseProperties();
const auto& eclProps = eclState->get3DProperties();
if (eclProps.hasDeckDoubleGridProperty("MULTPV")) {
multpv = eclProps.getDoubleGridProperty("MULTPV").getData();
}
@@ -278,7 +278,7 @@ namespace Opm
const int* global_cell = Opm::UgGridHelpers::globalCell(grid);
const int* cartdims = Opm::UgGridHelpers::cartDims(grid);
EclipseGridConstPtr eclgrid = eclState->getEclipseGrid();
const auto& porv = eclState->getEclipseProperties().getDoubleGridProperty("PORV").getData();
const auto& porv = eclState->get3DProperties().getDoubleGridProperty("PORV").getData();
for (int cellIdx = 0; cellIdx < numCells; ++cellIdx) {
const int nx = cartdims[0];
const int ny = cartdims[1];