mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fix a dune 2.4 deprecation warning
this only occured in debugmode...
This commit is contained in:
@@ -536,8 +536,13 @@ public:
|
||||
// determine the size of the element
|
||||
dofVars.effectiveSize.fill(0.0);
|
||||
|
||||
#if DUNE_VERSION_NEWER(DUNE_COMMON, 2,4)
|
||||
// we assume all elements to be hexahedrons!
|
||||
assert(context.element().subEntities(/*codim=*/dimWorld) == 8);
|
||||
#else
|
||||
// we assume all elements to be hexahedrons!
|
||||
assert(context.element().template count</*codim=*/dimWorld>() == 8);
|
||||
#endif
|
||||
|
||||
#if DUNE_VERSION_NEWER(DUNE_COMMON, 2,3)
|
||||
const auto &refElem = Dune::ReferenceElements<Scalar, /*dim=*/3>::cube();
|
||||
|
||||
Reference in New Issue
Block a user