5 #ifndef DUNE_LOCALFUNCTIONS_DUAL_P1_Q1_FACTORY_HH 6 #define DUNE_LOCALFUNCTIONS_DUAL_P1_Q1_FACTORY_HH 17 template<
class D,
class R,
int dim,
bool faceDual=false>
25 typedef std::map<Dune::GeometryType,FE*>
FEMap;
33 typename FEMap::iterator it =
cache_.begin();
34 typename FEMap::iterator end =
cache_.end();
40 static FE*
create(
const Dune::GeometryType& gt)
52 typename FEMap::const_iterator it =
cache_.find(gt);
58 DUNE_THROW(Dune::NotImplemented,
"No Dual P/Q1 like local finite element available for geometry type " << gt);
72 #endif // DUNE_LOCALFUNCTIONS_DUAL_P1_Q1_FACTORY_HH The local dual Q1 finite element on cubes.
Definition: dualq1.hh:41
traits helper struct
Definition: localfiniteelementtraits.hh:12
class for wrapping a finite element using the virtual interface
Definition: virtualwrappers.hh:19
Dune::DualP1LocalFiniteElement< D, R, dim, faceDual > DualP1
Definition: dualpq1factory.hh:21
Definition: bdfmcube.hh:17
Definition: dualpq1factory.hh:18
FE FiniteElementType
Type of the finite elements stored in this cache.
Definition: dualpq1factory.hh:29
Dune::LocalFiniteElementVirtualInterface< T > FE
Definition: dualpq1factory.hh:24
~DualPQ1LocalFiniteElementCache()
Definition: dualpq1factory.hh:31
FEMap cache_
Definition: dualpq1factory.hh:67
std::map< Dune::GeometryType, FE * > FEMap
Definition: dualpq1factory.hh:25
virtual base class for local finite elements with functions
Definition: virtualinterface.hh:224
static FE * create(const Dune::GeometryType >)
create finite element for given GeometryType
Definition: dualpq1factory.hh:40
Dune::DualQ1LocalFiniteElement< D, R, dim, faceDual > DualQ1
Definition: dualpq1factory.hh:22
DualP1::Traits::LocalBasisType::Traits T
Definition: dualpq1factory.hh:23
The local dual p1 finite element on simplices.
Definition: dualp1.hh:34