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