2 #ifndef DUNE_PDELAB_FINITEELEMENTMAP_BDM1SIMPLEX2DFEM_HH 3 #define DUNE_PDELAB_FINITEELEMENTMAP_BDM1SIMPLEX2DFEM_HH 6 #include <dune/localfunctions/brezzidouglasmarini/brezzidouglasmarini1simplex2d.hh> 14 template<
typename GV,
typename D,
typename R>
17 LocalFiniteElementMapTraits< Dune::BDM1Simplex2DLocalFiniteElement<D,R> >,
18 BDM1Simplex2DLocalFiniteElementMap<GV,D,R> >
20 typedef Dune::BDM1Simplex2DLocalFiniteElement<D,R> FE;
21 typedef typename GV::IndexSet IndexSet;
29 : gv(gv_), is(gv_.indexSet()), orient(gv_.
size(0))
32 for (
int i = 0; i < 8; i++)
40 for (
const auto& cell : elements(gv)) {
41 unsigned int myId = is.template index<0>(cell);
44 for (
const auto& intersection : intersections(gv,cell)) {
45 if (intersection.neighbor()
46 && is.template index<0>(intersection.outside()) > myId)
48 orient[myId] |= 1 << intersection.indexInInside();
55 template<
class EntityType>
58 return variant[orient[is.index(e)]];
71 std::size_t
size(GeometryType gt)
const 91 std::vector<unsigned char> orient;
96 #endif // DUNE_PDELAB_FINITEELEMENTMAP_BDM1SIMPLEX2DFEM_HH const Entity & e
Definition: localfunctionspace.hh:111
collect types exported by a finite element map
Definition: finiteelementmap.hh:38
std::size_t maxLocalSize() const
Definition: bdm1simplex2dfem.hh:82
T FiniteElementType
Type of finite element from local functions.
Definition: finiteelementmap.hh:30
For backward compatibility – Do not use this!
Definition: adaptivity.hh:27
LocalFiniteElementMapTraits< FE > Traits
export type of the signature
Definition: bdm1simplex2dfem.hh:25
bool fixedSize() const
Definition: bdm1simplex2dfem.hh:61
std::size_t size(GeometryType gt) const
Definition: bdm1simplex2dfem.hh:71
bool hasDOFs(int codim) const
Definition: bdm1simplex2dfem.hh:66
Definition: bdm1simplex2dfem.hh:15
const Traits::FiniteElementType & find(const EntityType &e) const
get local basis functions for entity
Definition: bdm1simplex2dfem.hh:56
interface for a finite element map
Definition: finiteelementmap.hh:42
BDM1Simplex2DLocalFiniteElementMap(const GV &gv_)
Use when Imp has a standard constructor.
Definition: bdm1simplex2dfem.hh:28