fix the deprecation warnings caused by OPM/opm-parser#687

This commit is contained in:
Andreas Lauser 2016-02-21 17:45:56 +01:00
parent dff635e7b9
commit 099c958137
2 changed files with 3 additions and 3 deletions

View File

@ -166,7 +166,7 @@ try
// Grid init // Grid init
std::vector<double> porv; std::vector<double> porv;
if (eclipseState->hasDoubleGridProperty("PORV")) { if (eclipseState->hasDeckDoubleGridProperty("PORV")) {
porv = eclipseState->getDoubleGridProperty("PORV")->getData(); porv = eclipseState->getDoubleGridProperty("PORV")->getData();
} }
grid.reset(new GridManager(eclipseState->getEclipseGrid(), porv)); grid.reset(new GridManager(eclipseState->getEclipseGrid(), porv));

View File

@ -95,13 +95,13 @@ namespace Opm
// get the pore volume multipliers from the EclipseState // get the pore volume multipliers from the EclipseState
std::vector<double> multpv(numCartesianCells, 1.0); std::vector<double> multpv(numCartesianCells, 1.0);
if (eclState->hasDoubleGridProperty("MULTPV")) { if (eclState->hasDeckDoubleGridProperty("MULTPV")) {
multpv = eclState->getDoubleGridProperty("MULTPV")->getData(); multpv = eclState->getDoubleGridProperty("MULTPV")->getData();
} }
// get the net-to-gross cell thickness from the EclipseState // get the net-to-gross cell thickness from the EclipseState
std::vector<double> ntg(numCartesianCells, 1.0); std::vector<double> ntg(numCartesianCells, 1.0);
if (eclState->hasDoubleGridProperty("NTG")) { if (eclState->hasDeckDoubleGridProperty("NTG")) {
ntg = eclState->getDoubleGridProperty("NTG")->getData(); ntg = eclState->getDoubleGridProperty("NTG")->getData();
} }