dune-pdelab  2.4.1
rt2cube2dfem.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil -*-
2 #ifndef DUNE_PDELAB_FINITEELEMENTMAP_RT2CUBE2DFEM_HH
3 #define DUNE_PDELAB_FINITEELEMENTMAP_RT2CUBE2DFEM_HH
4 
5 #include <vector>
6 #include <dune/localfunctions/raviartthomas/raviartthomas2cube2d.hh>
7 #include "finiteelementmap.hh"
8 
9 namespace Dune {
10  namespace PDELab {
11 
14  template<typename GV, typename D, typename R>
17  GV,
18  Dune::RT2Cube2DLocalFiniteElement<D,R>,
19  RT2Cube2DLocalFiniteElementMap<GV,D,R>,
20  16>
21  {
22  typedef Dune::RT2Cube2DLocalFiniteElement<D,R> FE;
23 
24  public:
27 
31  GV,
32  Dune::RT2Cube2DLocalFiniteElement<D,R>,
34  16>(gv)
35  {}
36 
37  bool fixedSize() const
38  {
39  return true;
40  }
41 
42  bool hasDOFs(int codim) const
43  {
44  return codim == 0 || codim == 1;
45  }
46 
47  std::size_t size(GeometryType gt) const
48  {
49  switch (gt.dim())
50  {
51  case 2:
52  return 12;
53  case 1:
54  return 3;
55  default:
56  return 0;
57  }
58  }
59 
60  std::size_t maxLocalSize() const
61  {
62  return 24;
63  }
64 
65  };
66  } // end namespace PDELab
67 } // end namespace Dune
68 
69 #endif // DUNE_PDELAB_FINITEELEMENTMAP_RT2CUBE2DFEM_HH
Definition: rt2cube2dfem.hh:15
LocalFiniteElementMapTraits< FE > Traits
export type of the signature
Definition: rt2cube2dfem.hh:26
std::size_t size(GeometryType gt) const
Definition: rt2cube2dfem.hh:47
Definition: adaptivity.hh:27
bool fixedSize() const
Definition: rt2cube2dfem.hh:37
collect types exported by a finite element map
Definition: finiteelementmap.hh:38
bool hasDOFs(int codim) const
Definition: rt2cube2dfem.hh:42
std::size_t maxLocalSize() const
Definition: rt2cube2dfem.hh:60
Definition: finiteelementmap.hh:223
RT2Cube2DLocalFiniteElementMap(const GV &gv)
Use when Imp has a standard constructor.
Definition: rt2cube2dfem.hh:29