dune-pdelab  2.0.0
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> >
16  {
17  public:
18  bool fixedSize() const
19  {
20  return true;
21  }
22 
23  std::size_t size(GeometryType gt) const
24  {
25  return gt.isLine() ? 1 : 0;
26  }
27 
28  std::size_t maxLocalSize() const
29  {
30  return 4;
31  }
32  };
33  } // namespace PDELab
34 } // namespace Dune
35 
36 #endif // DUNE_PDELAB_FINITEELEMENTMAP_RANNACHERTUREKFEM_HH
std::size_t size(GeometryType gt) const
Definition: rannacherturekfem.hh:23
std::size_t maxLocalSize() const
Definition: rannacherturekfem.hh:28
simple implementation where all entities have the same finite element
Definition: finiteelementmap.hh:107
bool fixedSize() const
Definition: rannacherturekfem.hh:18
Definition: rannacherturekfem.hh:14