dune-localfunctions  2.2.1
hierarchicalp2withelementbubble.hh
Go to the documentation of this file.
1 #ifndef DUNE_HIERARCHICAL_P2_WITH_ELEMENTBUBBLE_LOCALFINITEELEMENT_HH
2 #define DUNE_HIERARCHICAL_P2_WITH_ELEMENTBUBBLE_LOCALFINITEELEMENT_HH
3 
4 #include <dune/geometry/type.hh>
5 
8 
9 
10 namespace Dune
11 {
12 
15  template<class D, class R, int dim>
17  {
18 
19  dune_static_assert(dim==2, "HierarchicalP2WithElementBubbleLocalFiniteElement only implemented for dim==2.");
20 
21  public:
27 
31  {
32  gt_.makeTriangle();
33  }
34 
37  const typename Traits::LocalBasisType& localBasis () const
38  {
39  return basis_;
40  }
41 
45  {
46  return coefficients_;
47  }
48 
52  {
53  return interpolation_;
54  }
55 
58  GeometryType type () const
59  {
60  return gt_;
61  }
62 
64  {
66  }
67 
68  private:
70 
72 
74 
75  GeometryType gt_;
76  };
77 
78 }
79 
80 #endif