3 #ifndef DUNE_LOCALFUNCTIONS_DUAL_P1_Q1_FACTORY_HH 4 #define DUNE_LOCALFUNCTIONS_DUAL_P1_Q1_FACTORY_HH 15 template<
class D,
class R,
int dim,
bool faceDual=false>
23 typedef std::map<Dune::GeometryType,FE*>
FEMap;
31 typename FEMap::iterator it =
cache_.begin();
32 typename FEMap::iterator end =
cache_.end();
38 static FE*
create(
const Dune::GeometryType& gt)
48 const FiniteElementType&
get(
const Dune::GeometryType& gt)
const 50 typename FEMap::const_iterator it =
cache_.find(gt);
53 FiniteElementType* fe =
create(gt);
56 DUNE_THROW(Dune::NotImplemented,
"No Dual P/Q1 like local finite element available for geometry type " << gt);
70 #endif // DUNE_LOCALFUNCTIONS_DUAL_P1_Q1_FACTORY_HH Dune::DualQ1LocalFiniteElement< D, R, dim, faceDual > DualQ1
Definition: dualpq1factory.hh:20
Definition: dualpq1factory.hh:16
~DualPQ1LocalFiniteElementCache()
Definition: dualpq1factory.hh:29
Definition: brezzidouglasmarini1cube2dlocalbasis.hh:15
The local dual Q1 finite element on cubes.
Definition: dualq1.hh:39
Dune::FixedOrderLocalBasisTraits< typename DualP1::Traits::LocalBasisType::Traits, 0 >::Traits T
Definition: dualpq1factory.hh:21
std::map< Dune::GeometryType, FE * > FEMap
Definition: dualpq1factory.hh:23
FE FiniteElementType
Type of the finite elements stored in this cache.
Definition: dualpq1factory.hh:27
virtual base class for local finite elements with functions
Definition: virtualinterface.hh:391
The local dual p1 finite element on simplices.
Definition: dualp1.hh:32
FEMap cache_
Definition: dualpq1factory.hh:65
static FE * create(const Dune::GeometryType >)
create finite element for given GeometryType
Definition: dualpq1factory.hh:38
class for wrapping a finite element using the virtual interface
Definition: virtualwrappers.hh:20
Dune::DualP1LocalFiniteElement< D, R, dim, faceDual > DualP1
Definition: dualpq1factory.hh:19
Dune::LocalFiniteElementVirtualInterface< T > FE
Definition: dualpq1factory.hh:22
Type traits for LocalBasisVirtualInterface.
Definition: localbasis.hh:37