dune-localfunctions  2.2.1
p0localcoefficients.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil -*-
2 // vi: set ts=4 sw=2 et sts=2:
3 #ifndef DUNE_P0LOCALCOEFFICIENTS_HH
4 #define DUNE_P0LOCALCOEFFICIENTS_HH
5 
6 #include <cstddef>
7 #include <iostream>
8 #include <vector>
9 
11 
12 namespace Dune
13 {
14 
22  {
23  public:
25  P0LocalCoefficients () : index(0,0,0)
26  {}
27 
29  std::size_t size () const
30  {
31  return 1;
32  }
33 
35  const LocalKey& localKey (std::size_t i) const
36  {
37  return index;
38  }
39 
40  private:
41  LocalKey index;
42  };
43 
44 }
45 #endif