2 #ifndef DUNE_PDELAB_FINITEELEMENTMAP_MIMETICFEM_HH
3 #define DUNE_PDELAB_FINITEELEMENTMAP_MIMETICFEM_HH
6 #include<dune/geometry/type.hh>
7 #include<dune/localfunctions/mimetic.hh>
13 template<
typename IIS,
typename D,
typename R,
int dim>
16 MimeticLocalFiniteElementMap<IIS,D,R,dim> >
18 typedef MimeticLocalFiniteElement<D,R,dim> FE;
26 : iis(iis_), bt(basicType)
31 for (
int i=0; i<20; i++) variant[i] = FE(bt,i);
35 template<
class EntityType>
38 size_t n =
static_cast<size_t>(iis.size(
e));
43 size_t old_n = variant.size();
45 for (
size_t i=old_n; i<n+1; i++) variant[i] = FE(bt,i);
52 Dune::GeometryType::BasicType bt;
53 mutable std::vector<FE> variant;
const Entity & e
Definition: localfunctionspace.hh:123
For backward compatibility – Do not use this!
Definition: adaptivity.hh:28
T FiniteElementType
Type of finite element from local functions.
Definition: finiteelementmap.hh:30
collect types exported by a finite element map
Definition: finiteelementmap.hh:38
interface for a finite element map
Definition: finiteelementmap.hh:43
Definition: mimeticfem.hh:17
Dune::PDELab::LocalFiniteElementMapTraits< FE > Traits
export type of the signature
Definition: mimeticfem.hh:22
MimeticLocalFiniteElementMap(const IIS &iis_, Dune::GeometryType::BasicType basicType)
Use when Imp has a standard constructor.
Definition: mimeticfem.hh:25
const Traits::FiniteElementType & find(const EntityType &e) const
get local basis functions for entity
Definition: mimeticfem.hh:36