dune-pdelab  2.5-dev
rannacherturekfem.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil -*-
2 #ifndef DUNE_PDELAB_FINITEELEMENTMAP_RANNACHERTUREKFEM_HH
3 #define DUNE_PDELAB_FINITEELEMENTMAP_RANNACHERTUREKFEM_HH
4 
5 #include<dune/localfunctions/rannacherturek.hh>
6 #include"finiteelementmap.hh"
7 
8 namespace Dune {
9  namespace PDELab {
10 
13  template<class D, class R, std::size_t d>
15  : public SimpleLocalFiniteElementMap<RannacherTurekLocalFiniteElement<D,R,d>,d>
16  {
17  public:
18 
19  static constexpr bool fixedSize()
20  {
21  return true;
22  }
23 
24  static constexpr bool hasDOFs(int codim)
25  {
26  return codim == 1;
27  }
28 
29  static constexpr std::size_t size(GeometryType gt)
30  {
31  return gt == GeometryTypes::line ? 1 : 0;
32  }
33 
34  static constexpr std::size_t maxLocalSize()
35  {
36  return 4;
37  }
38 
39  };
40  } // namespace PDELab
41 } // namespace Dune
42 
43 #endif // DUNE_PDELAB_FINITEELEMENTMAP_RANNACHERTUREKFEM_HH
Dune::PDELab::RannacherTurekLocalFiniteElementMap::fixedSize
static constexpr bool fixedSize()
Definition: rannacherturekfem.hh:19
Dune
For backward compatibility – Do not use this!
Definition: adaptivity.hh:28
Dune::PDELab::RannacherTurekLocalFiniteElementMap::hasDOFs
static constexpr bool hasDOFs(int codim)
Definition: rannacherturekfem.hh:24
Dune::PDELab::RannacherTurekLocalFiniteElementMap::size
static constexpr std::size_t size(GeometryType gt)
Definition: rannacherturekfem.hh:29
Dune::PDELab::RannacherTurekLocalFiniteElementMap::maxLocalSize
static constexpr std::size_t maxLocalSize()
Definition: rannacherturekfem.hh:34
Dune::PDELab::RannacherTurekLocalFiniteElementMap
Definition: rannacherturekfem.hh:14
Dune::PDELab::SimpleLocalFiniteElementMap
simple implementation where all entities have the same finite element
Definition: finiteelementmap.hh:111
finiteelementmap.hh