dune-localfunctions  2.2.1
p1.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil -*-
2 // vi: set ts=4 sw=2 et sts=2:
3 #ifndef DUNE_P1LOCALFINITEELEMENT_HH
4 #define DUNE_P1LOCALFINITEELEMENT_HH
5 
6 #include <dune/geometry/type.hh>
7 
9 #include "p1/p1localbasis.hh"
12 
13 namespace Dune
14 {
15 
21  template<class D, class R, int dim>
23  {
24  public:
29 
33  {
34  gt.makeSimplex(dim);
35  }
36 
39  const typename Traits::LocalBasisType& localBasis () const
40  {
41  return basis;
42  }
43 
47  {
48  return coefficients;
49  }
50 
54  {
55  return interpolation;
56  }
57 
60  GeometryType type () const
61  {
62  return gt;
63  }
64 
66  {
67  return new P1LocalFiniteElement(*this);
68  }
69 
70  private:
72  P1LocalCoefficients<dim> coefficients;
74  GeometryType gt;
75  };
76 
77 
78 
79 }
80 
81 #endif