mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
ebos: get rid of some Dune 2.4 deprecation warnings
they haven't been noticed yet because CpGrid does not feature them.
This commit is contained in:
@@ -319,7 +319,11 @@ public:
|
||||
/////////////
|
||||
// influence of grid on well
|
||||
auto &curBlock = matrix[wellGlobalDofIdx][gridDofIdx];
|
||||
#if DUNE_VERSION_NEWER(DUNE_COMMON, 2,4)
|
||||
elemCtx.updateStencil(*dofVars.elementPtr);
|
||||
#else
|
||||
elemCtx.updateStencil(*(*dofVars.elementPtr));
|
||||
#endif
|
||||
curBlock = 0.0;
|
||||
for (int priVarIdx = 0; priVarIdx < numModelEq; ++priVarIdx) {
|
||||
// calculate the derivative of the well equation w.r.t. the current
|
||||
|
||||
@@ -170,8 +170,8 @@ public:
|
||||
const auto& inside = intersection.inside();
|
||||
const auto& outside = intersection.outside();
|
||||
#if DUNE_VERSION_NEWER(DUNE_COMMON, 2,4)
|
||||
int insideElemIdx = elementMapper.index(*inside);
|
||||
int outsideElemIdx = elementMapper.index(*outside);
|
||||
int insideElemIdx = elementMapper.index(inside);
|
||||
int outsideElemIdx = elementMapper.index(outside);
|
||||
#else
|
||||
int insideElemIdx = elementMapper.map(*inside);
|
||||
int outsideElemIdx = elementMapper.map(*outside);
|
||||
|
||||
Reference in New Issue
Block a user