dune-localfunctions  2.2.1
raviartthomas1q3dlocalcoefficients.hh
Go to the documentation of this file.
1 #ifndef DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS1Q3DLOCALCOEFFICIENTS_HH
2 #define DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS1Q3DLOCALCOEFFICIENTS_HH
3 
4 #include <cstddef>
5 #include <vector>
6 
7 #include "../../common/localkey.hh"
8 
9 namespace Dune
10 {
11 
20  {
21 
22 public:
25  {
26  for (std::size_t i = 0; i < 6; i++)
27  {
28  li[i] = LocalKey(i,1,0);
29  li[i + 6] = LocalKey(i,1,1);
30  li[i + 12] = LocalKey(i,1,2);
31  li[i + 18] = LocalKey(i,1,3);
32  }
33 
34  for (std::size_t i = 0; i < 12; i++)
35  {
36  li[i + 24] = LocalKey(0,0,i);
37  }
38  }
39 
41  std::size_t size () const
42  {
43  return 36;
44  }
45 
47  const LocalKey& localKey (std::size_t i) const
48  {
49  return li[i];
50  }
51 
52 private:
53  std::vector<LocalKey> li;
54  };
55 }
56 #endif // DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS1Q3DLOCALCOEFFICIENTS_HH