4 #ifndef DUNE_PDELAB_FINITEELEMENTMAP_POWERFEM_HH
5 #define DUNE_PDELAB_FINITEELEMENTMAP_POWERFEM_HH
9 #include <dune/localfunctions/meta/power.hh>
22 template<
class BackendFEM, std::
size_t dimR>
25 typedef typename BackendFEM::Traits::FiniteElementType BackendFE;
26 typedef PowerFiniteElementFactory<BackendFE, dimR> Factory;
28 const BackendFEM &backend;
29 static const Factory factory;
56 template<
class Element>
58 {
return factory.make(backend.find(e)); }
62 return backend.fixedSize();
65 std::size_t
size(GeometryType gt)
const
67 return dimR * backend.size(gt);
72 return dimR * backend.maxLocalSize();
77 template<
class BackendFEM, std::
size_t dimR>
78 const typename PowerFiniteElementMap<BackendFEM, dimR>::Factory
79 PowerFiniteElementMap<BackendFEM, dimR>::factory = Factory();
84 #endif // DUNE_PDELAB_FINITEELEMENTMAP_POWERFEM_HH
std::size_t maxLocalSize() const
Definition: powerfem.hh:70
FiniteElementMap for PowerFiniteElements.
Definition: powerfem.hh:23
bool fixedSize() const
Definition: powerfem.hh:60
FiniteElementMapTraits< typename Factory::FiniteElement > Traits
export Traits
Definition: powerfem.hh:33
PowerFiniteElementMap(const BackendFEM &backend_)
construct PowerFiniteElementMap
Definition: powerfem.hh:47
collect types exported by a finite element map
Definition: finiteelementmap.hh:27
T FiniteElementType
Type of finite element from local functions.
Definition: finiteelementmap.hh:30
std::size_t size(GeometryType gt) const
Definition: powerfem.hh:65
Traits::FiniteElementType find(const Element &e) const
Return finite element for the given entity.
Definition: powerfem.hh:57
const E & e
Definition: interpolate.hh:172