3#ifndef DUNE_LOCALFUNCTIONS_DUAL_P1_Q1_FACTORY_HH
4#define DUNE_LOCALFUNCTIONS_DUAL_P1_Q1_FACTORY_HH
8#include <dune/localfunctions/common/virtualinterface.hh>
9#include <dune/localfunctions/common/virtualwrappers.hh>
11#include <dune/localfunctions/dualmortarbasis.hh>
15template<
class D,
class R,
int dim,
bool faceDual=false>
16class DualPQ1LocalFiniteElementCache
21 typedef typename DualP1::Traits::LocalBasisType::Traits T;
23 typedef std::map<Dune::GeometryType,FE*> FEMap;
27 typedef FE FiniteElementType;
29 ~DualPQ1LocalFiniteElementCache()
31 typename FEMap::iterator it = cache_.begin();
32 typename FEMap::iterator end = cache_.end();
50 typename FEMap::const_iterator it = cache_.find(
gt);
53 FiniteElementType* fe = create(
gt);
The local dual p1 finite element on simplices.
Definition: dualp1.hh:33
The local dual Q1 finite element on cubes.
Definition: dualq1.hh:40
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:280
class for wrapping a finite element using the virtual interface
Definition: virtualwrappers.hh:240
virtual base class for local finite elements with functions
Definition: virtualinterface.hh:260
Default exception for dummy implementations.
Definition: exceptions.hh:261
#define DUNE_THROW(E, m)
Definition: exceptions.hh:216
bool gt(const T &first, const T &second, typename EpsilonType< T >::Type epsilon)
test if first greater than second
Definition: float_cmp.cc:156
Dune namespace.
Definition: alignedallocator.hh:14