fix a dune 2.4 deprecation warning

this only occured in debugmode...
This commit is contained in:
Andreas Lauser
2015-01-20 14:47:26 +01:00
parent 440a2f9496
commit 006a3324b2

View File

@@ -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();