dune-pdelab  2.4.1
ap/dglegendre.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 // vi: set et ts=4 sw=2 sts=2:
3 
4 #ifndef DUNE_PDELAB_FINITEELEMENTMAP_DGLEGENDRE_HH
5 #define DUNE_PDELAB_FINITEELEMENTMAP_DGLEGENDRE_HH
6 
7 #include "finiteelementmap.hh"
9 
10 namespace Dune {
11  namespace PDELab {
12 
15  template<class D, class R, int k, int d>
17  : public Dune::PDELab::SimpleLocalFiniteElementMap< Dune::DGLegendreLocalFiniteElement<D,R,k,d> >
18  {
19 
20  public:
21 
22  bool fixedSize() const
23  {
24  return true;
25  }
26 
27  bool hasDOFs (int codim) const
28  {
29  return codim == 0;
30  }
31 
32  std::size_t size (GeometryType gt) const
33  {
34  if (gt == GeometryType(GeometryType::cube,d))
36  else
37  return 0;
38  }
39 
40  std::size_t maxLocalSize() const
41  {
43  }
44 
45  };
46 
47  }
48 }
49 
50 #endif
Definition: qkdg.hh:29
Definition: dglegendre.hh:31
bool hasDOFs(int codim) const
Definition: ap/dglegendre.hh:27
Definition: adaptivity.hh:27
Definition: ap/dglegendre.hh:16
simple implementation where all entities have the same finite element
Definition: finiteelementmap.hh:107
std::size_t maxLocalSize() const
Definition: ap/dglegendre.hh:40
bool fixedSize() const
Definition: ap/dglegendre.hh:22
std::size_t size(GeometryType gt) const
Definition: ap/dglegendre.hh:32