dune-localfunctions  2.3.1
q2.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 #ifndef DUNE_Q2_LOCALFINITEELEMENT_HH
4 #define DUNE_Q2_LOCALFINITEELEMENT_HH
5 
6 #warning The class Q2LocalFiniteElement from q2.hh is deprecated, and will be removed\
7  after the release of Dune 2.3. Please use QkLocalFiniteElement from qk.hh instead.
8 
9 #include <dune/geometry/type.hh>
10 
13 #include "q2/q2localbasis.hh"
16 
17 namespace Dune
18 {
19 
25  template<class D, class R, int dim>
27  {
28  public:
33 
37  {
38  gt.makeCube(dim);
39  }
40 
43  const typename Traits::LocalBasisType& localBasis () const
44  {
45  return basis;
46  }
47 
51  {
52  return coefficients;
53  }
54 
58  {
59  return interpolation;
60  }
61 
64  GeometryType type () const
65  {
66  return gt;
67  }
68 
69  private:
71  Q2LocalCoefficients<dim> coefficients;
73  GeometryType gt;
74  };
75 
77 
82  template<class Geometry, class RF>
85  Q2LocalFiniteElement<typename Geometry::ctype, RF, Geometry::mydimension>, Geometry
86  >
87  {
90 
91  static const LFE lfe;
92 
93  public:
96  };
97 
98  template<class Geometry, class RF>
99  const typename Q2FiniteElementFactory<Geometry, RF>::LFE
100  Q2FiniteElementFactory<Geometry, RF>::lfe;
101 }
102 
103 #endif