dune-localfunctions  2.2.1
q2.hh
Go to the documentation of this file.
1 // -*- tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 // vi: set et ts=2 sw=2 sts=2:
3 #ifndef DUNE_Q2_LOCALFINITEELEMENT_HH
4 #define DUNE_Q2_LOCALFINITEELEMENT_HH
5 
6 #include <dune/geometry/type.hh>
7 
10 #include "q2/q2localbasis.hh"
13 
14 namespace Dune
15 {
16 
22 template<class D, class R, int dim>
24 {
25 public:
30 
34  {
35  gt.makeCube(dim);
36  }
37 
40  const typename Traits::LocalBasisType& localBasis () const
41  {
42  return basis;
43  }
44 
48  {
49  return coefficients;
50  }
51 
55  {
56  return interpolation;
57  }
58 
61  GeometryType type () const
62  {
63  return gt;
64  }
65 
66 private:
68  Q2LocalCoefficients<dim> coefficients;
70  GeometryType gt;
71 };
72 
74 
79 template<class Geometry, class RF>
82 Q2LocalFiniteElement<typename Geometry::ctype, RF, Geometry::mydimension>, Geometry
83 >
84 {
87 
88  static const LFE lfe;
89 
90 public:
93 };
94 
95 template<class Geometry, class RF>
96 const typename Q2FiniteElementFactory<Geometry, RF>::LFE
97 Q2FiniteElementFactory<Geometry, RF>::lfe;
98 }
99 
100 #endif