dune-localfunctions  2.5-git
brezzidouglasmarini1cube2dlocalcoefficients.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_CUBE2D_LOCALCOEFFICIENTS_HH
4 #define DUNE_LOCALFUNCTIONS_BREZZIDOUGLASMARINI1_CUBE2D_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 < 4; ++i)
29  {
30  li[2*i] = LocalKey(i,1,0);
31  li[2*i + 1] = LocalKey(i,1,1);
32  }
33  }
34 
36  std::size_t size () const
37  {
38  return 8;
39  }
40 
42  const LocalKey& localKey (std::size_t i) const
43  {
44  return li[i];
45  }
46 
47  private:
48  std::vector<LocalKey> li;
49  };
50 }
51 #endif // DUNE_LOCALFUNCTIONS_BREZZIDOUGLASMARINI1_CUBE2D_LOCALCOEFFICIENTS_HH
Definition: brezzidouglasmarini1cube2dlocalbasis.hh:15
const LocalKey & localKey(std::size_t i) const
get i&#39;th index
Definition: brezzidouglasmarini1cube2dlocalcoefficients.hh:42
BDM1Cube2DLocalCoefficients()
Standard constructor.
Definition: brezzidouglasmarini1cube2dlocalcoefficients.hh:26
std::size_t size() const
number of coefficients
Definition: brezzidouglasmarini1cube2dlocalcoefficients.hh:36
Layout map for Brezzi-Douglas-Marini-1 elements on quadrilaterals.
Definition: brezzidouglasmarini1cube2dlocalcoefficients.hh:21
Describe position of one degree of freedom.
Definition: localkey.hh:20