dune-localfunctions  2.3.0
brezzidouglasmarini1cube3dlocalcoefficients.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_BREZZIDOUGLASMARINI1_CUBE3D_LOCALCOEFFICIENTS_HH
4 #define DUNE_LOCALFUNCTIONS_BREZZIDOUGLASMARINI1_CUBE3D_LOCALCOEFFICIENTS_HH
5 
6 #include <cstddef>
7 #include <vector>
8 
9 #include "../../common/localkey.hh"
10 
11 namespace Dune
12 {
13 
22  {
23 
24  public:
27  {
28  for (std::size_t i = 0; i < 6; ++i)
29  {
30  li[i] = LocalKey(i,1,0);
31  li[i + 6] = LocalKey(i,1,1);
32  li[i + 12] = LocalKey(i,1,2);
33  }
34  }
35 
37  std::size_t size() const
38  {
39  return 6;
40  }
41 
43  const LocalKey& localKey(std::size_t i) const
44  {
45  return li[i];
46  }
47 
48  private:
49  std::vector<LocalKey> li;
50  };
51 } // end namespace Dune
52 #endif // DUNE_LOCALFUNCTIONS_BREZZIDOUGLASMARINI1_CUBE3D_LOCALCOEFFICIENTS_HH
std::size_t size() const
number of coefficients
Definition: brezzidouglasmarini1cube3dlocalcoefficients.hh:37
Layout map for Brezzi-Douglas-Marini-1 elements on quadrilaterals.
Definition: brezzidouglasmarini1cube3dlocalcoefficients.hh:21
Describe position of one degree of freedom.
Definition: localkey.hh:20
BDM1Cube3DLocalCoefficients()
Standard constructor.
Definition: brezzidouglasmarini1cube3dlocalcoefficients.hh:26
const LocalKey & localKey(std::size_t i) const
get i'th index
Definition: brezzidouglasmarini1cube3dlocalcoefficients.hh:43