dune-pdelab  2.5-dev
rt0cube3dfem.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil -*-
2 #ifndef DUNE_PDELAB_FINITEELEMENTMAP_RT0CUBE3DFEM_HH
3 #define DUNE_PDELAB_FINITEELEMENTMAP_RT0CUBE3DFEM_HH
4 
5 #include<vector>
6 #include<dune/localfunctions/raviartthomas/raviartthomas0cube3d.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::RT0Cube3DLocalFiniteElement<D,R>,
19  RT0Cube3DLocalFiniteElementMap<GV,D,R>,
20  64>
21  {
22  typedef Dune::RT0Cube3DLocalFiniteElement<D,R> FE;
23 
24  public:
27 
31  GV,
32  Dune::RT0Cube3DLocalFiniteElement<D,R>,
34  64>(gv)
35  {}
36 
37  bool fixedSize() const
38  {
39  return true;
40  }
41 
42  bool hasDOFs(int codim) const
43  {
44  return codim == 1;
45  }
46 
47  std::size_t size(GeometryType gt) const
48  {
49  return gt.dim() == 2 && gt.isCube() ? 1 : 0;
50  }
51 
52  std::size_t maxLocalSize() const
53  {
54  return 6;
55  }
56 
57  };
58  } // end namespace PDELab
59 } // end namespace Dune
60 
61 #endif // DUNE_PDELAB_FINITEELEMENTMAP_RT0CUBE3DFEM_HH
LocalFiniteElementMapTraits< FE > Traits
export type of the signature
Definition: rt0cube3dfem.hh:26
RT0Cube3DLocalFiniteElementMap(const GV &gv)
Use when Imp has a standard constructor.
Definition: rt0cube3dfem.hh:29
collect types exported by a finite element map
Definition: finiteelementmap.hh:38
bool hasDOFs(int codim) const
Definition: rt0cube3dfem.hh:42
Definition: finiteelementmap.hh:211
bool fixedSize() const
Definition: rt0cube3dfem.hh:37
std::size_t maxLocalSize() const
Definition: rt0cube3dfem.hh:52
For backward compatibility – Do not use this!
Definition: adaptivity.hh:27
Definition: rt0cube3dfem.hh:15
std::size_t size(GeometryType gt) const
Definition: rt0cube3dfem.hh:47