dune-localfunctions  2.2.1
pyramidp2.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_PYRAMIDP2_3DLOCALFINITEELEMENT_HH
4 #define DUNE_PYRAMIDP2_3DLOCALFINITEELEMENT_HH
5 
6 #include <dune/geometry/type.hh>
7 
12 
13 namespace Dune
14 {
15 
18  template<class D, class R>
20  {
21  public:
27 
31  {
32  gt.makePyramid();
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  {
65  return new PyramidP2LocalFiniteElement(*this);
66  }
67 
68  private:
70  PyramidP2LocalCoefficients coefficients;
72  GeometryType gt;
73  };
74 
75 }
76 
77 #endif