dune-localfunctions  2.3beta2
raviartthomas02d.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_RAVIARTTHOMAS02DLOCALFINITEELEMENT_HH
4 #define DUNE_RAVIARTTHOMAS02DLOCALFINITEELEMENT_HH
5 
6 #include <dune/geometry/type.hh>
7 
12 
13 namespace Dune
14 {
15 
22  template<class D, class R>
23  class
25  {
26  public:
29 
32  {
33  gt.makeTriangle();
34  }
35 
41  RT02DLocalFiniteElement (int s) : basis(s), interpolation(s)
42  {
43  gt.makeTriangle();
44  }
45 
46  const typename Traits::LocalBasisType& localBasis () const
47  {
48  return basis;
49  }
50 
51  const typename Traits::LocalCoefficientsType& localCoefficients () const
52  {
53  return coefficients;
54  }
55 
56  const typename Traits::LocalInterpolationType& localInterpolation () const
57  {
58  return interpolation;
59  }
60 
61  GeometryType type () const
62  {
63  return gt;
64  }
65 
66  private:
68  RT02DLocalCoefficients coefficients;
70  GeometryType gt;
71  };
72 
73 }
74 
75 #endif