dune-localfunctions  2.2.1
p23d.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_P2_3DLOCALFINITEELEMENT_HH
4 #define DUNE_P2_3DLOCALFINITEELEMENT_HH
5 
6 #include <dune/geometry/type.hh>
7 
9 #include "p23d/p23dlocalbasis.hh"
12 
13 namespace Dune
14 {
15 
18  template<class D, class R>
20  {
21  public:
27 
31  {
32  gt.makeTetrahedron();
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 P23DLocalFiniteElement(*this);
66  }
67 
68  private:
69  P23DLocalBasis<D,R> basis;
70  P23DLocalCoefficients coefficients;
72  GeometryType gt;
73  };
74 
75 }
76 
77 #endif