dune-localfunctions  2.2.1
raviartthomas02d.hh
Go to the documentation of this file.
1 #ifndef DUNE_RAVIARTTHOMAS02DLOCALFINITEELEMENT_HH
2 #define DUNE_RAVIARTTHOMAS02DLOCALFINITEELEMENT_HH
3 
4 #include <dune/geometry/type.hh>
5 
10 
11 namespace Dune
12 {
13 
14  template<class D, class R>
16  {
17  public:
20 
22  {
23  gt.makeTriangle();
24  }
25 
26  RT02DLocalFiniteElement (int s) : basis(s), interpolation(s)
27  {
28  gt.makeTriangle();
29  }
30 
31  const typename Traits::LocalBasisType& localBasis () const
32  {
33  return basis;
34  }
35 
37  {
38  return coefficients;
39  }
40 
42  {
43  return interpolation;
44  }
45 
46  GeometryType type () const
47  {
48  return gt;
49  }
50 
51  private:
53  RT02DLocalCoefficients coefficients;
55  GeometryType gt;
56  };
57 
58 }
59 
60 #endif