2#ifndef DUNE_PDELAB_FINITEELEMENTMAP_RAVIARTTHOMASFEM_HH
3#define DUNE_PDELAB_FINITEELEMENTMAP_RAVIARTTHOMASFEM_HH
5#include <dune/grid/common/capabilities.hh>
31 template<
typename GV,
int dim, GeometryType::BasicType basic_type,
typename D,
typename R, std::
size_t k>
32 struct RaviartThomasLocalFiniteElementMapBaseSelector
34 static_assert((AlwaysFalse<GV>::value),
"The requested type of Raviart-Thomas element is not implemented, sorry!");
42 template<
typename GV,
typename D,
typename R>
43 struct RaviartThomasLocalFiniteElementMapBaseSelector<GV,2,
GeometryType::simplex,D,R,0>
45 typedef RT0Simplex2DLocalFiniteElementMap<GV,D,R> type;
48 template<
typename GV,
typename D,
typename R>
49 struct RaviartThomasLocalFiniteElementMapBaseSelector<GV,2,
GeometryType::simplex,D,R,1>
51 typedef RT1Simplex2DLocalFiniteElementMap<GV,D,R> type;
55 template<
typename GV,
typename D,
typename R>
56 struct RaviartThomasLocalFiniteElementMapBaseSelector<GV,2,
GeometryType::cube,D,R,0>
58 typedef RT0Cube2DLocalFiniteElementMap<GV,D,R> type;
61 template<
typename GV,
typename D,
typename R>
62 struct RaviartThomasLocalFiniteElementMapBaseSelector<GV,2,
GeometryType::cube,D,R,1>
64 typedef RT1Cube2DLocalFiniteElementMap<GV,D,R> type;
67 template<
typename GV,
typename D,
typename R>
68 struct RaviartThomasLocalFiniteElementMapBaseSelector<GV,2,
GeometryType::cube,D,R,2>
70 typedef RT2Cube2DLocalFiniteElementMap<GV,D,R> type;
74 template<
typename GV,
typename D,
typename R>
75 struct RaviartThomasLocalFiniteElementMapBaseSelector<GV,3,
GeometryType::simplex,D,R,0>
77 typedef RT0Simplex3DLocalFiniteElementMap<GV,D,R> type;
81 template<
typename GV,
typename D,
typename R>
82 struct RaviartThomasLocalFiniteElementMapBaseSelector<GV,3,
GeometryType::cube,D,R,0>
84 typedef RT0Cube3DLocalFiniteElementMap<GV,D,R> type;
87 template<
typename GV,
typename D,
typename R>
88 struct RaviartThomasLocalFiniteElementMapBaseSelector<GV,3,
GeometryType::cube,D,R,1>
90 typedef RT1Cube3DLocalFiniteElementMap<GV,D,R> type;
120 template<
typename GV,
130 public detail::RaviartThomasLocalFiniteElementMapBaseSelector<GV,GV::dimension,basic_type,D,R,k>::type
140 : detail::RaviartThomasLocalFiniteElementMapBaseSelector<GV,GV::
dimension,basic_type,D,R,k>::type(gv)
148 template<
typename GV,
typename D,
typename R, std::
size_t k>
149 class RaviartThomasLocalFiniteElementMap<GV,D,R,k,
GeometryType::none>
152 "Your chosen grid does not export a usable topology id for its cells."
153 "Please provide the correct GeometryType::BasicType as an additional template parameter.");
For backward compatibility – Do not use this!
static const unsigned int topologyId
Raviart-Thomas elements of order k.
Definition raviartthomasfem.hh:131
static constexpr int dimension
The dimension of the finite elements returned by this map.
Definition raviartthomasfem.hh:136
RaviartThomasLocalFiniteElementMap(const GV &gv)
Constructs a finite element map on the GridView gv.
Definition raviartthomasfem.hh:139
static const unsigned int value
Definition gridfunctionspace/tags.hh:139