dune-localfunctions  2.8.0
dualp1.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_LOCALFUNCTIONS_DUALMORTARBASIS_DUALP1_HH
4 #define DUNE_LOCALFUNCTIONS_DUALMORTARBASIS_DUALP1_HH
5 
6 #include <dune/geometry/type.hh>
7 
12 
13 namespace Dune
14 {
15 
31  template<class D, class R, int dim, bool faceDual=false>
33  {
34  public:
39 
43  {}
44 
47  const typename Traits::LocalBasisType& localBasis () const
48  {
49  return basis;
50  }
51 
55  {
56  return coefficients;
57  }
58 
62  {
63  return interpolation;
64  }
65 
67  unsigned int size () const
68  {
69  return basis.size();
70  }
71 
74  static constexpr GeometryType type ()
75  {
76  return GeometryTypes::simplex(dim);
77  }
78 
79  private:
81  DualP1LocalCoefficients<dim> coefficients;
83  };
84 
85 
86 
87 }
88 
89 #endif
Definition: bdfmcube.hh:16
traits helper struct
Definition: localfiniteelementtraits.hh:11
LB LocalBasisType
Definition: localfiniteelementtraits.hh:14
LC LocalCoefficientsType
Definition: localfiniteelementtraits.hh:18
LI LocalInterpolationType
Definition: localfiniteelementtraits.hh:22
Dual Lagrange shape functions on the simplex.
Definition: dualp1localbasis.hh:32
Local coefficients for dual simplex P1 elements.
Definition: dualp1localcoefficients.hh:21
Definition: dualp1localinterpolation.hh:13
The local dual p1 finite element on simplices.
Definition: dualp1.hh:33
DualP1LocalFiniteElement()
Definition: dualp1.hh:42
const Traits::LocalInterpolationType & localInterpolation() const
Definition: dualp1.hh:61
unsigned int size() const
Number of shape functions in this finite element.
Definition: dualp1.hh:67
LocalFiniteElementTraits< DualP1LocalBasis< D, R, dim, faceDual >, DualP1LocalCoefficients< dim >, DualP1LocalInterpolation< dim, DualP1LocalBasis< D, R, dim, faceDual > > > Traits
Definition: dualp1.hh:38
const Traits::LocalCoefficientsType & localCoefficients() const
Definition: dualp1.hh:54
static constexpr GeometryType type()
Definition: dualp1.hh:74
const Traits::LocalBasisType & localBasis() const
Definition: dualp1.hh:47