fix some recent deprecation warnings

these are caused by OPM/opm-parser#687. While they are harmless, they
are certainly annoying. (that's their point!)
This commit is contained in:
Andreas Lauser committed 2016-02-21 17:29:43 +01:00
1 parent be1ea358ff
commit c709e347c3
3 files changed
+18 -18

No files matched your search

+3 -3
View File
@@ -1181,17 +1181,17 @@ void EclipseWriter::writeInit(const SimulatorTimerInterface &timer)
IOConfigConstPtr ioConfig = eclipseState_->getIOConfigConst(); IOConfigConstPtr ioConfig = eclipseState_->getIOConfigConst();
if (ioConfig->getWriteINITFile()) { if (ioConfig->getWriteINITFile()) {
if (eclipseState_->hasDoubleGridProperty("PERMX")) { if (eclipseState_->hasDeckDoubleGridProperty("PERMX")) {
auto data = eclipseState_->getDoubleGridProperty("PERMX")->getData(); auto data = eclipseState_->getDoubleGridProperty("PERMX")->getData();
EclipseWriterDetails::convertFromSiTo(data, Opm::prefix::milli * Opm::unit::darcy); EclipseWriterDetails::convertFromSiTo(data, Opm::prefix::milli * Opm::unit::darcy);
fortio.writeKeyword("PERMX", data); fortio.writeKeyword("PERMX", data);
} }
if (eclipseState_->hasDoubleGridProperty("PERMY")) { if (eclipseState_->hasDeckDoubleGridProperty("PERMY")) {
auto data = eclipseState_->getDoubleGridProperty("PERMY")->getData(); auto data = eclipseState_->getDoubleGridProperty("PERMY")->getData();
EclipseWriterDetails::convertFromSiTo(data, Opm::prefix::milli * Opm::unit::darcy); EclipseWriterDetails::convertFromSiTo(data, Opm::prefix::milli * Opm::unit::darcy);
fortio.writeKeyword("PERMY", data); fortio.writeKeyword("PERMY", data);
} }
if (eclipseState_->hasDoubleGridProperty("PERMZ")) { if (eclipseState_->hasDeckDoubleGridProperty("PERMZ")) {
auto data = eclipseState_->getDoubleGridProperty("PERMZ")->getData(); auto data = eclipseState_->getDoubleGridProperty("PERMZ")->getData();
EclipseWriterDetails::convertFromSiTo(data, Opm::prefix::milli * Opm::unit::darcy); EclipseWriterDetails::convertFromSiTo(data, Opm::prefix::milli * Opm::unit::darcy);
fortio.writeKeyword("PERMZ", data); fortio.writeKeyword("PERMZ", data);
+9 -9
View File
@@ -183,16 +183,16 @@ namespace Opm
/// Invalid invalid set of components given. /// Invalid invalid set of components given.
PermeabilityKind classifyPermeability(Opm::EclipseStateConstPtr eclState) PermeabilityKind classifyPermeability(Opm::EclipseStateConstPtr eclState)
{ {
const bool xx = eclState->hasDoubleGridProperty("PERMX" ); const bool xx = eclState->hasDeckDoubleGridProperty("PERMX" );
const bool xy = eclState->hasDoubleGridProperty("PERMXY"); const bool xy = eclState->hasDeckDoubleGridProperty("PERMXY");
const bool yx = xy; const bool yx = xy;
const bool yy = eclState->hasDoubleGridProperty("PERMY" ); const bool yy = eclState->hasDeckDoubleGridProperty("PERMY" );
const bool yz = eclState->hasDoubleGridProperty("PERMYZ"); const bool yz = eclState->hasDeckDoubleGridProperty("PERMYZ");
const bool zy = yz; const bool zy = yz;
const bool zz = eclState->hasDoubleGridProperty("PERMZ" ); const bool zz = eclState->hasDeckDoubleGridProperty("PERMZ" );
const bool zx = eclState->hasDoubleGridProperty("PERMZX"); const bool zx = eclState->hasDeckDoubleGridProperty("PERMZX");
const bool xz = zx; const bool xz = zx;
int num_cross_comp = xy + xz + yx + yz + zx + zy; int num_cross_comp = xy + xz + yx + yz + zx + zy;
@@ -309,7 +309,7 @@ namespace Opm
// ----------------------------------------------------------- // -----------------------------------------------------------
// 1st row: [ kxx, kxy ], kxz handled in kzx // 1st row: [ kxx, kxy ], kxz handled in kzx
if (eclState->hasDoubleGridProperty("PERMX" )) { if (eclState->hasDeckDoubleGridProperty("PERMX" )) {
kmap[xx] = tensor.size(); kmap[xx] = tensor.size();
tensor.push_back(extractPermComponent(eclState, "PERMX", global_cell)); tensor.push_back(extractPermComponent(eclState, "PERMX", global_cell));
@@ -322,7 +322,7 @@ namespace Opm
// ----------------------------------------------------------- // -----------------------------------------------------------
// 2nd row: [ kyy, kyz ], kyx handled in kxy // 2nd row: [ kyy, kyz ], kyx handled in kxy
if (eclState->hasDoubleGridProperty("PERMY" )) { if (eclState->hasDeckDoubleGridProperty("PERMY" )) {
kmap[yy] = tensor.size(); kmap[yy] = tensor.size();
tensor.push_back(extractPermComponent(eclState, "PERMY", global_cell)); tensor.push_back(extractPermComponent(eclState, "PERMY", global_cell));
@@ -339,7 +339,7 @@ namespace Opm
kmap[zx] = kmap[xz] = tensor.size(); // Enforce symmetry. kmap[zx] = kmap[xz] = tensor.size(); // Enforce symmetry.
tensor.push_back(extractPermComponent(eclState, "PERMZX", global_cell)); tensor.push_back(extractPermComponent(eclState, "PERMZX", global_cell));
} }
if (eclState->hasDoubleGridProperty("PERMZ" )) { if (eclState->hasDeckDoubleGridProperty("PERMZ" )) {
kmap[zz] = tensor.size(); kmap[zz] = tensor.size();
tensor.push_back(extractPermComponent(eclState, "PERMZ", global_cell)); tensor.push_back(extractPermComponent(eclState, "PERMZ", global_cell));
@@ -90,7 +90,7 @@ namespace Opm {
* \tparam PropertyContainer Pointer type * \tparam PropertyContainer Pointer type
* representing collection of (global) grid * representing collection of (global) grid
* properties. Must implement method \c * properties. Must implement method \c
* hasIntGridProperty. * hasDeckIntGridProperty.
* *
* \param[in] ecl Property container. * \param[in] ecl Property container.
* *
@@ -110,7 +110,7 @@ namespace Opm {
HasProperty<int>::p(PropertyContainer& ecl, HasProperty<int>::p(PropertyContainer& ecl,
const std::string& kw) const std::string& kw)
{ {
return ecl->hasIntGridProperty(kw); return ecl->hasDeckIntGridProperty(kw);
} }
/** /**
@@ -125,7 +125,7 @@ namespace Opm {
* \tparam PropertyContainer Pointer type * \tparam PropertyContainer Pointer type
* representing collection of (global) grid * representing collection of (global) grid
* properties. Must implement method \c * properties. Must implement method \c
* hasDoubleGridProperty. * hasDeckDoubleGridProperty.
* *
* \param[in] ecl Property container. * \param[in] ecl Property container.
* *
@@ -145,7 +145,7 @@ namespace Opm {
HasProperty<double>::p(PropertyContainer& ecl, HasProperty<double>::p(PropertyContainer& ecl,
const std::string& kw) const std::string& kw)
{ {
return ecl->hasDoubleGridProperty(kw); return ecl->hasDeckDoubleGridProperty(kw);
} }
/** /**
@@ -291,9 +291,9 @@ namespace Opm {
* \tparam PropertyContainer Pointer type representing * \tparam PropertyContainer Pointer type representing
* collection of (global) grid properties. Typically * collection of (global) grid properties. Typically
* \c EclipseStatePtr or \c EclipseStateConstPtr. * \c EclipseStatePtr or \c EclipseStateConstPtr.
* Must implement methods \c hasIntGridProperty and \c * Must implement methods \c hasDeckIntGridProperty and \c
* getIntGridProperty if \c T is \c int, or \c * getIntGridProperty if \c T is \c int, or \c
* hasDoubleGridProperty and \c getDoubleGridProperty * hasDeckDoubleGridProperty and \c getDoubleGridProperty
* if \c T is \c double. * if \c T is \c double.
* *
* \param[in] ecl Property container. * \param[in] ecl Property container.