dune-localfunctions  2.4.1
p0localcoefficients.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 // vi: set et ts=4 sw=2 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
std::size_t size() const
number of coefficients
Definition: p0localcoefficients.hh:29
P0LocalCoefficients()
Standard constructor.
Definition: p0localcoefficients.hh:25
Definition: brezzidouglasmarini1cube2dlocalbasis.hh:14
Layout map for P0 elements.
Definition: p0localcoefficients.hh:21
const LocalKey & localKey(std::size_t i) const
get i'th index
Definition: p0localcoefficients.hh:35
Describe position of one degree of freedom.
Definition: localkey.hh:21