dune-pdelab  2.0.0
topologyutility.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 // vi: set et ts=4 sw=2 sts=2:
3 #ifndef DUNE_PDELAB_COMMON_TOPOLOGYUTILITY_HH
4 #define DUNE_PDELAB_COMMON_TOPOLOGYUTILITY_HH
5 
6 #include <dune/geometry/type.hh>
7 #include <dune/geometry/genericgeometry/conversion.hh>
8 
9 namespace Dune {
10 
11  namespace PDELab {
12 
13 
15 
25  template<int dimension, unsigned int topologyId>
27  {
28 
30  typedef typename GenericGeometry::Topology<topologyId,dimension>::type Topology;
31 
33  static const GeometryType::BasicType value =
34  GenericGeometry::DuneGeometryType<Topology,GeometryType::simplex>::basicType;
35  };
36 
37 
38  } // namespace PDELab
39 } // namespace Dune
40 
41 
42 #endif // DUNE_PDELAB_COMMON_TOPOLOGYUTILITY_HH
GenericGeometry::Topology< topologyId, dimension >::type Topology
The topology described by dimension and topologyId.
Definition: topologyutility.hh:30
Utility TMP for determining the BasicType of a geometry from its dimension and topology id...
Definition: topologyutility.hh:26
static const GeometryType::BasicType value
The BasicType of Topology.
Definition: topologyutility.hh:33