dune-localfunctions  2.3beta2
mimetic.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_MIMETICLOCALFINITEELEMENT_HH
4 #define DUNE_MIMETICLOCALFINITEELEMENT_HH
5 
6 #include <dune/geometry/type.hh>
7 
9 #include "mimetic/mimeticall.hh"
10 
11 namespace Dune
12 {
13  template<class D, class R, int dim>
15  {
16  Dune::GeometryType gt;
18  MimeticLocalCoefficients coefficients;
20 
21  public:
25 
27  {}
28 
29  MimeticLocalFiniteElement (Dune::GeometryType::BasicType basicType)
30  : gt(basicType,dim)
31  {}
32 
33  MimeticLocalFiniteElement (Dune::GeometryType::BasicType basicType, unsigned int variant)
34  : gt(basicType,dim), basis(variant), coefficients(variant)
35  {}
36 
37  const typename Traits::LocalBasisType& localBasis () const
38  {
39  return basis;
40  }
41 
43  {
44  return coefficients;
45  }
46 
48  {
49  return interpolation;
50  }
51 
52  Dune::GeometryType type () const { return gt; }
53  };
54 }
55 
56 #endif