dune-localfunctions  2.2.1
raviartthomas12dlocalcoefficients.hh
Go to the documentation of this file.
1 #ifndef DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS12DLOCALCOEFFICIENTS_HH
2 #define DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS12DLOCALCOEFFICIENTS_HH
3 
4 #include <cstddef>
5 #include <vector>
6 
7 #include "../../common/localkey.hh"
8 
9 namespace Dune
10 {
11 
19  {
20 
21 public:
24  {
25  for (std::size_t i = 0; i < 3; i++)
26  {
27  li[i] = LocalKey(i,1,0);
28  li[3 + i] = LocalKey(i,1,1);
29  }
30 
31  // last two DOF are associated with the cell (codim = 0)
32  li[6] = LocalKey(0,0,0);
33  li[7] = LocalKey(0,0,1);
34  }
35 
37  std::size_t size () const
38  {
39  return 8;
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 }
52 #endif // DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS12DLOCALCOEFFICIENTS_HH