dune-localfunctions  2.2.1
prismp1.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil -*-
2 #ifndef DUNE_P13DLOCALFINITEELEMENT_HH
3 #define DUNE_P13DLOCALFINITEELEMENT_HH
4 
5 #include <dune/geometry/type.hh>
6 
8 
12 
13 namespace Dune
14 {
15 
18  template<class D, class R>
20  {
21  public:
26 
30  {
31  gt.makePrism();
32  }
33 
34 
37  const typename Traits::LocalBasisType& localBasis () const
38  {
39  return basis;
40  }
41 
45  {
46  return coefficients;
47  }
48 
52  {
53  return interpolation;
54  }
55 
58  GeometryType type () const
59  {
60  return gt;
61  }
62 
64  {
65  return new PrismP1LocalFiniteElement(*this);
66  }
67 
68  private:
70  PrismP1LocalCoefficients coefficients;
72  GeometryType gt;
73  };
74 
75 }
76 
77 #endif