Go to the documentation of this file.
2 #ifndef DUNE_PDELAB_FINITEELEMENTMAP_BDM1CUBE2DFEM_HH
3 #define DUNE_PDELAB_FINITEELEMENTMAP_BDM1CUBE2DFEM_HH
6 #include <dune/localfunctions/brezzidouglasmarini/brezzidouglasmarini1cube2d.hh>
14 template<
typename GV,
typename D,
typename R>
17 LocalFiniteElementMapTraits<Dune::BDM1Cube2DLocalFiniteElement<D,R> >,
18 BDM1Cube2DLocalFiniteElementMap<GV,D,R> >
20 typedef Dune::BDM1Cube2DLocalFiniteElement<D,R> FE;
21 typedef typename GV::IndexSet IndexSet;
32 : gv(gv_), is(gv_.indexSet()), orient(gv_.
size(0))
35 for (
int i = 0; i < 16; i++)
43 for (
const auto& cell : elements(gv)) {
44 unsigned int myId = is.template index<0>(cell);
47 for (
const auto& intersection : intersections(gv,cell)) {
48 if (intersection.neighbor()
49 && is.template index<0>(intersection.outside()) > myId)
51 orient[myId] |= 1 << intersection.indexInInside();
58 template<
class EntityType>
61 return variant[orient[is.index(
e)]];
74 static constexpr std::size_t
size(GeometryType gt)
94 std::vector<unsigned char> orient;
99 #endif // DUNE_PDELAB_FINITEELEMENTMAP_BDM1CUBE2DFEM_HH
static constexpr bool hasDOFs(int codim)
Definition: bdm1cube2dfem.hh:69
BDM1Cube2DLocalFiniteElementMap(const GV &gv_)
Use when Imp has a standard constructor.
Definition: bdm1cube2dfem.hh:31
interface for a finite element map
Definition: finiteelementmap.hh:42
For backward compatibility – Do not use this!
Definition: adaptivity.hh:28
static constexpr int dimension
The dimension of the finite elements returned by this map.
Definition: bdm1cube2dfem.hh:28
static constexpr std::size_t maxLocalSize()
Definition: bdm1cube2dfem.hh:85
const Entity & e
Definition: localfunctionspace.hh:121
static constexpr bool fixedSize()
Definition: bdm1cube2dfem.hh:64
const Traits::FiniteElementType & find(const EntityType &e) const
get local basis functions for entity
Definition: bdm1cube2dfem.hh:59
Definition: bdm1cube2dfem.hh:15
static constexpr std::size_t size(GeometryType gt)
Definition: bdm1cube2dfem.hh:74
collect types exported by a finite element map
Definition: finiteelementmap.hh:38
T FiniteElementType
Type of finite element from local functions.
Definition: finiteelementmap.hh:30
LocalFiniteElementMapTraits< FE > Traits
export type of the signature
Definition: bdm1cube2dfem.hh:25