From 099c958137873494e6660b830f70875c6a97d23a Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Sun, 21 Feb 2016 17:45:56 +0100 Subject: [PATCH] fix the deprecation warnings caused by OPM/opm-parser#687 --- examples/sim_poly_fi2p_comp_ad.cpp | 2 +- opm/autodiff/GeoProps.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/sim_poly_fi2p_comp_ad.cpp b/examples/sim_poly_fi2p_comp_ad.cpp index 1f965791c..55a577787 100644 --- a/examples/sim_poly_fi2p_comp_ad.cpp +++ b/examples/sim_poly_fi2p_comp_ad.cpp @@ -166,7 +166,7 @@ try // Grid init std::vector porv; - if (eclipseState->hasDoubleGridProperty("PORV")) { + if (eclipseState->hasDeckDoubleGridProperty("PORV")) { porv = eclipseState->getDoubleGridProperty("PORV")->getData(); } grid.reset(new GridManager(eclipseState->getEclipseGrid(), porv)); diff --git a/opm/autodiff/GeoProps.hpp b/opm/autodiff/GeoProps.hpp index cfe9c5efc..77cb8afcb 100644 --- a/opm/autodiff/GeoProps.hpp +++ b/opm/autodiff/GeoProps.hpp @@ -95,13 +95,13 @@ namespace Opm // get the pore volume multipliers from the EclipseState std::vector 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 ntg(numCartesianCells, 1.0); - if (eclState->hasDoubleGridProperty("NTG")) { + if (eclState->hasDeckDoubleGridProperty("NTG")) { ntg = eclState->getDoubleGridProperty("NTG")->getData(); }