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