dune-localfunctions  2.2.1
brezzidouglasmarini1q2d.hh
Go to the documentation of this file.
1 #ifndef DUNE_LOCALFUNCTIONS_BREZZIDOUGLASMARINI1Q2DLOCALFINITEELEMENT_HH
2 #define DUNE_LOCALFUNCTIONS_BREZZIDOUGLASMARINI1Q2DLOCALFINITEELEMENT_HH
3 
4 #include <dune/geometry/type.hh>
5 
6 #include "../common/localfiniteelementtraits.hh"
10 
11 namespace Dune
12 {
19  template<class D, class R>
21  {
22 
23 public:
26 
29  {
30  gt.makeQuadrilateral();
31  }
32 
38  BDM1Q2DLocalFiniteElement (int s) : basis(s), interpolation(s)
39  {
40  gt.makeQuadrilateral();
41  }
42 
43  const typename Traits::LocalBasisType& localBasis () const
44  {
45  return basis;
46  }
47 
49  {
50  return coefficients;
51  }
52 
54  {
55  return interpolation;
56  }
57 
58  GeometryType type () const
59  {
60  return gt;
61  }
62 
63 private:
65  BDM1Q2DLocalCoefficients coefficients;
67  GeometryType gt;
68  };
69 }
70 #endif // DUNE_LOCALFUNCTIONS_BREZZIDOUGLASMARINI1Q2DLOCALFINITEELEMENT_HH