3 #ifndef DUNE_PDELAB_COMMON_TOPOLOGYUTILITY_HH 4 #define DUNE_PDELAB_COMMON_TOPOLOGYUTILITY_HH 6 #include <dune/geometry/type.hh> 24 template<
int dimension,
unsigned int topologyId>
28 ((topologyId ^ ((1 << dimension)-1)) >> 1 == 0);
31 (topologyId | 1) == 1;
34 static const GeometryType::BasicType
value =
35 isSimplex ? GeometryType::simplex
37 isCube ? GeometryType::cube
47 #endif // DUNE_PDELAB_COMMON_TOPOLOGYUTILITY_HH Utility TMP for determining the BasicType of a geometry from its dimension and topology id...
Definition: topologyutility.hh:25
static const bool isSimplex
Definition: topologyutility.hh:30
static const GeometryType::BasicType value
The BasicType of Topology.
Definition: topologyutility.hh:34
For backward compatibility – Do not use this!
Definition: adaptivity.hh:28
static const bool isCube
Definition: topologyutility.hh:27