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> >
16  {
17  public:
18  bool fixedSize() const
19  {
20  return true;
21  }
22 
23  bool hasDOFs(int codim) const
24  {
25  return codim == 1;
26  }
27 
28  std::size_t size(GeometryType gt) const
29  {
30  return gt.isLine() ? 1 : 0;
31  }
32 
33  std::size_t maxLocalSize() const
34  {
35  return 4;
36  }
37  };
38  } // namespace PDELab
39 } // namespace Dune
40 
41 #endif // DUNE_PDELAB_FINITEELEMENTMAP_RANNACHERTUREKFEM_HH
Definition: rannacherturekfem.hh:14
simple implementation where all entities have the same finite element
Definition: finiteelementmap.hh:95
std::size_t maxLocalSize() const
Definition: rannacherturekfem.hh:33
For backward compatibility – Do not use this!
Definition: adaptivity.hh:27
std::size_t size(GeometryType gt) const
Definition: rannacherturekfem.hh:28
bool fixedSize() const
Definition: rannacherturekfem.hh:18
bool hasDOFs(int codim) const
Definition: rannacherturekfem.hh:23