dune-pdelab  2.0.0
p1fem.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil -*-
2 #ifndef DUNE_PDELAB_FINITEELEMENTMAP_P1FEM_HH
3 #define DUNE_PDELAB_FINITEELEMENTMAP_P1FEM_HH
4 
5 #warning dune/pdelab/finiteelementmap/p1fem.hh and P1LocalFiniteElementMap are deprecated, please use dune/pdelab/finiteelementmap/pkfem.hh and PkLocalFiniteElementMap instead
6 
7 #include <dune/common/deprecated.hh>
8 #include <dune/localfunctions/lagrange/p1.hh>
9 #include "finiteelementmap.hh"
10 
11 namespace Dune {
12  namespace PDELab {
13 
16  template<class D, class R, int d>
17  class DUNE_DEPRECATED_MSG("Please use PkLocalFiniteElementMap instead") P1LocalFiniteElementMap
18  : public SimpleLocalFiniteElementMap< Dune::P1LocalFiniteElement<D,R,d> >
19  {
20  public:
21  bool fixedSize() const
22  {
23  return true;
24  }
25 
26  std::size_t size(GeometryType gt) const
27  {
28  return gt.isVertex() ? 1 : 0;
29  }
30 
31  std::size_t maxLocalSize() const
32  {
33  return d+1;
34  }
35  };
36 
37  }
38 }
39 
40 #endif // DUNE_PDELAB_FINITEELEMENTMAP_P1FEM_HH
bool fixedSize() const
Definition: p1fem.hh:21
std::size_t size(GeometryType gt) const
Definition: p1fem.hh:26
simple implementation where all entities have the same finite element
Definition: finiteelementmap.hh:107
std::size_t maxLocalSize() const
Definition: p1fem.hh:31