dune-localfunctions  2.2.1
raviartthomas02dlocalcoefficients.hh
Go to the documentation of this file.
1 #ifndef DUNE_RT0TRIANGLELOCALCOEFFICIENTS_HH
2 #define DUNE_RT0TRIANGLELOCALCOEFFICIENTS_HH
3 
4 #include <cstddef>
5 #include <iostream>
6 #include <vector>
7 
9 
10 namespace Dune
11 {
12 
20  {
21  public:
24  {
25  for (std::size_t i=0; i<3; i++)
26  li[i] = LocalKey(i,1,0);
27  }
28 
30  std::size_t size () const
31  {
32  return 3;
33  }
34 
36  const LocalKey& localKey (std::size_t i) const
37  {
38  return li[i];
39  }
40 
41  private:
42  std::vector<LocalKey> li;
43  };
44 
45 }
46 
47 #endif