dune-localfunctions  2.2.1
brezzidouglasmarini12dlocalcoefficients.hh
Go to the documentation of this file.
1 #ifndef DUNE_LOCALFUNCTIONS_BREZZIDOUGLASMARINI1TRIANGLELOCALCOEFFICIENTS_HH
2 #define DUNE_LOCALFUNCTIONS_BREZZIDOUGLASMARINI1TRIANGLELOCALCOEFFICIENTS_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<3; i++)
27  {
28  li[i] = LocalKey(i,1,0);
29  li[3 + i] = LocalKey(i,1,1);
30  }
31  }
32 
34  std::size_t size () const
35  {
36  return 6;
37  }
38 
40  const LocalKey& localKey (std::size_t i) const
41  {
42  return li[i];
43  }
44 
45 private:
46  std::vector<LocalKey> li;
47  };
48 }
49 #endif // DUNE_LOCALFUNCTIONS_BREZZIDOUGLASMARINI1TRIANGLELOCALCOEFFICIENTS_HH