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;
38 static constexpr
int dimension = BackendFEM::dimension;
61 template<
class Element>
63 {
return factory.make(backend.find(e)); }
67 return backend.fixedSize();
72 return backend.hasDOFs(codim);
75 std::size_t
size(GeometryType gt)
const 77 return dimR * backend.size(gt);
82 return dimR * backend.maxLocalSize();
87 template<
class BackendFEM, std::
size_t dimR>
88 const typename PowerFiniteElementMap<BackendFEM, dimR>::Factory
94 #endif // DUNE_PDELAB_FINITEELEMENTMAP_POWERFEM_HH FiniteElementMap for PowerFiniteElements.
Definition: powerfem.hh:23
const Entity & e
Definition: localfunctionspace.hh:120
Traits::FiniteElementType find(const Element &e) const
Return finite element for the given entity.
Definition: powerfem.hh:62
bool hasDOFs(int codim) const
Definition: powerfem.hh:70
FiniteElementMapTraits< typename Factory::FiniteElement > Traits
export Traits
Definition: powerfem.hh:33
PowerFiniteElementMap(const BackendFEM &backend_)
construct PowerFiniteElementMap
Definition: powerfem.hh:52
T FiniteElementType
Type of finite element from local functions.
Definition: finiteelementmap.hh:30
std::size_t maxLocalSize() const
Definition: powerfem.hh:80
static constexpr int dimension
The dimension of the finite elements returned by this map.
Definition: powerfem.hh:38
For backward compatibility – Do not use this!
Definition: adaptivity.hh:28
bool fixedSize() const
Definition: powerfem.hh:65
collect types exported by a finite element map
Definition: finiteelementmap.hh:27
std::size_t size(GeometryType gt) const
Definition: powerfem.hh:75