dune-localfunctions  2.3.1
raviartthomas0cube3d.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_LOCALFUNCTIONS_RAVIARTTHOMAS0_CUBE3D_LOCALFINITEELEMENT_HH
4 #define DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS0_CUBE3D_LOCALFINITEELEMENT_HH
5 
6 #include <dune/geometry/type.hh>
7 
10 
11 namespace Dune
12 {
13  template<class D, class R>
15  {
16  public:
21 
23  {
24  gt.makeHexahedron();
25  }
26 
27  RT0Cube3DLocalFiniteElement (int s) : basis(s), interpolation(s)
28  {
29  gt.makeHexahedron();
30  }
31 
32  const typename Traits::LocalBasisType& localBasis () const
33  {
34  return basis;
35  }
36 
38  {
39  return coefficients;
40  }
41 
43  {
44  return interpolation;
45  }
46 
47  GeometryType type () const
48  {
49  return gt;
50  }
51 
52  private:
54  RT0Cube3DLocalCoefficients coefficients;
56  GeometryType gt;
57  };
58 }
59 #endif // DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS0_CUBE3D_LOCALFINITEELEMENT_HH