dune-localfunctions  2.2.1
pk3d.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil -*-
2 // vi: set ts=4 sw=2 et sts=2:
3 #ifndef DUNE_Pk3DLOCALFINITEELEMENT_HH
4 #define DUNE_Pk3DLOCALFINITEELEMENT_HH
5 
6 #include <dune/geometry/type.hh>
7 
9 #include "pk3d/pk3dlocalbasis.hh"
12 
13 namespace Dune
14 {
15 
18  template<class D, class R, unsigned int k>
20  {
21  public:
27 
31  {
32  gt.makeTetrahedron();
33  }
34 
41  Pk3DLocalFiniteElement (const unsigned int vertexmap[4]) : coefficients(vertexmap)
42  {
43  gt.makeTetrahedron();
44  }
45 
48  const typename Traits::LocalBasisType& localBasis () const
49  {
50  return basis;
51  }
52 
56  {
57  return coefficients;
58  }
59 
63  {
64  return interpolation;
65  }
66 
69  GeometryType type () const
70  {
71  return gt;
72  }
73 
75  {
76  return new Pk3DLocalFiniteElement(*this);
77  }
78 
79  private:
81  Pk3DLocalCoefficients<k> coefficients;
83  GeometryType gt;
84  };
85 
86 }
87 
88 #endif