Merge pull request #597 from andlaus/fix_deprecation_warnings

fix the deprecation warnings caused by OPM/opm-parser#687
This commit is contained in:
Bård Skaflestad 2016-02-21 18:09:48 -06:00
commit db86c367d5
2 changed files with 3 additions and 3 deletions

View File

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

View File

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