dune-localfunctions  2.2.1
pyramidp1localcoefficients.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil -*-
2 #ifndef DUNE_PYRAMID_P1_LOCALCOEFFICIENTS_HH
3 #define DUNE_PYRAMID_P1_LOCALCOEFFICIENTS_HH
4 
5 #include <cstddef>
6 #include <iostream>
7 #include <vector>
8 
10 
11 namespace Dune
12 {
13 
20  {
21  public:
24  {
25  for (std::size_t i=0; i<5; i++)
26  li[i] = LocalKey(i,3,0);
27  }
28 
30  std::size_t size () const
31  {
32  return 5;
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