dune-localfunctions  2.8.0
raviartthomas03dlocalcoefficients.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_LOCALFUNCTIONS_RAVIARTTHOMAS_RAVIARTTHOMAS03D_RAVIARTTHOMAS03DLOCALCOEFFICIENTS_HH
4 #define DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS_RAVIARTTHOMAS03D_RAVIARTTHOMAS03DLOCALCOEFFICIENTS_HH
5 
6 #include <cstddef>
7 #include <iostream>
8 #include <vector>
9 
11 
12 namespace Dune
13 {
14 
22  {
23  public:
26  {
27  for (std::size_t i=0; i<4; i++)
28  li[i] = LocalKey(i,1,0);
29  }
30 
32  std::size_t size () const
33  {
34  return 4;
35  }
36 
38  const LocalKey& localKey (std::size_t i) const
39  {
40  return li[i];
41  }
42 
43  private:
44  std::vector<LocalKey> li;
45  };
46 
47 }
48 
49 #endif
Definition: bdfmcube.hh:16
Describe position of one degree of freedom.
Definition: localkey.hh:21
Layout map for RT0 elements.
Definition: raviartthomas03dlocalcoefficients.hh:22
RT03DLocalCoefficients()
Standard constructor.
Definition: raviartthomas03dlocalcoefficients.hh:25
const LocalKey & localKey(std::size_t i) const
get i'th index
Definition: raviartthomas03dlocalcoefficients.hh:38
std::size_t size() const
number of coefficients
Definition: raviartthomas03dlocalcoefficients.hh:32