dune-localfunctions  2.2.1
rannacherturek2dlocalcoefficients.hh
Go to the documentation of this file.
1 #ifndef DUNE_RANNACHER_TUREK2DLOCALCOEFFICIENTS_HH
2 #define DUNE_RANNACHER_TUREK2DLOCALCOEFFICIENTS_HH
3 
4 #include <cstddef>
5 #include <vector>
6 
8 
9 namespace Dune {
10 
15  {
16  public:
18  for (std::size_t i=0; i<4; i++) li[i] = LocalKey(i,1,0);
19  }
20 
22  std::size_t size () const {
23  return 4;
24  }
25 
27  const LocalKey& localKey (std::size_t i) const {
28  return li[i];
29  }
30 
31  private:
32  std::vector<LocalKey> li;
33  };
34 
35 } //namespace Dune
36 
37 #endif //DUNE_RANNACHER_TUREK2DLOCALCOEFFICIENTS_HH