dune-localfunctions  2.2.1
raviartthomas12d.hh
Go to the documentation of this file.
1 #ifndef DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS12DLOCALFINITEELEMENT_HH
2 #define DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS12DLOCALFINITEELEMENT_HH
3 
4 #include <dune/geometry/type.hh>
5 
6 #include "../common/localfiniteelementtraits.hh"
10 
11 namespace Dune
12 {
13 
20  template<class D, class R>
22  {
23 
24 public:
27 
30  {
31  gt.makeTriangle();
32  }
33 
39  RT12DLocalFiniteElement (int s) : basis(s), interpolation(s)
40  {
41  gt.makeTriangle();
42  }
43 
44  const typename Traits::LocalBasisType& localBasis () const
45  {
46  return basis;
47  }
48 
50  {
51  return coefficients;
52  }
53 
55  {
56  return interpolation;
57  }
58 
59  GeometryType type () const
60  {
61  return gt;
62  }
63 
64 private:
66  RT12DLocalCoefficients coefficients;
68  GeometryType gt;
69  };
70 }
71 
72 #endif // DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS12DLOCALFINITEELEMENT_HH