dune-localfunctions
2.2.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
localfunctions
raviartthomas
raviartthomas12d
raviartthomas12dlocalcoefficients.hh
Go to the documentation of this file.
1
#ifndef DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS12DLOCALCOEFFICIENTS_HH
2
#define DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS12DLOCALCOEFFICIENTS_HH
3
4
#include <cstddef>
5
#include <vector>
6
7
#include "../../common/localkey.hh"
8
9
namespace
Dune
10
{
11
18
class
RT12DLocalCoefficients
19
{
20
21
public
:
23
RT12DLocalCoefficients
() : li(8)
24
{
25
for
(std::size_t i = 0; i < 3; i++)
26
{
27
li[i] =
LocalKey
(i,1,0);
28
li[3 + i] =
LocalKey
(i,1,1);
29
}
30
31
// last two DOF are associated with the cell (codim = 0)
32
li[6] =
LocalKey
(0,0,0);
33
li[7] =
LocalKey
(0,0,1);
34
}
35
37
std::size_t
size
()
const
38
{
39
return
8;
40
}
41
43
const
LocalKey
&
localKey
(std::size_t i)
const
44
{
45
return
li[i];
46
}
47
48
private
:
49
std::vector<LocalKey> li;
50
};
51
}
52
#endif // DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS12DLOCALCOEFFICIENTS_HH
Generated on Mon May 20 2013 01:06:59 for dune-localfunctions by
1.8.3.1