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