dune-localfunctions  2.3.1
hierarchicalp2.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_HIERARCHICAL_P2_LOCALFINITEELEMENT_HH
4 #define DUNE_HIERARCHICAL_P2_LOCALFINITEELEMENT_HH
5 
6 #include <dune/geometry/type.hh>
7 
10 
13 
14 namespace Dune
15 {
16 
19  template<class D, class R, int dim>
21  {
22 
23  dune_static_assert(1<=dim && dim<=3, "HierarchicalP2LocalFiniteElement only implemented for dim==1, 2, 3.");
24 
25  public:
32 
36  {
37  gt.makeSimplex(dim);
38  }
39 
42  const typename Traits::LocalBasisType& localBasis () const
43  {
44  return basis;
45  }
46 
50  {
51  return coefficients;
52  }
53 
57  {
58  return interpolation;
59  }
60 
63  GeometryType type () const
64  {
65  return gt;
66  }
67 
69  {
70  return new HierarchicalP2LocalFiniteElement(*this);
71  }
72 
73  private:
75 
76  typename Traits::LocalCoefficientsType coefficients;
77 
79  GeometryType gt;
80  };
81 
82 }
83 
84 #endif