dune-localfunctions  2.2.1
mimetic.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil -*-
2 #ifndef DUNE_MIMETICLOCALFINITEELEMENT_HH
3 #define DUNE_MIMETICLOCALFINITEELEMENT_HH
4 
5 #include <dune/geometry/type.hh>
6 
8 #include "mimetic/mimeticall.hh"
9 
10 namespace Dune
11 {
12  template<class D, class R, int dim>
14  {
15  Dune::GeometryType gt;
17  MimeticLocalCoefficients coefficients;
19 
20  public:
24 
26  {}
27 
28  MimeticLocalFiniteElement (Dune::GeometryType::BasicType basicType)
29  : gt(basicType,dim)
30  {}
31 
32  MimeticLocalFiniteElement (Dune::GeometryType::BasicType basicType, unsigned int variant)
33  : gt(basicType,dim), basis(variant), coefficients(variant)
34  {}
35 
36  const typename Traits::LocalBasisType& localBasis () const
37  {
38  return basis;
39  }
40 
42  {
43  return coefficients;
44  }
45 
47  {
48  return interpolation;
49  }
50 
51  Dune::GeometryType type () const { return gt; }
52  };
53 }
54 
55 #endif