dune-localfunctions
2.2.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
localfunctions
brezzidouglasmarini
brezzidouglasmarini1q2d
brezzidouglasmarini1q2dlocalcoefficients.hh
Go to the documentation of this file.
1
#ifndef DUNE_LOCALFUNCTIONS_BREZZIDOUGLASMARINI1Q2DLOCALCOEFFICIENTS_HH
2
#define DUNE_LOCALFUNCTIONS_BREZZIDOUGLASMARINI1Q2DLOCALCOEFFICIENTS_HH
3
4
#include <cstddef>
5
#include <vector>
6
7
#include "../../common/localkey.hh"
8
9
namespace
Dune
10
{
11
19
class
BDM1Q2DLocalCoefficients
20
{
21
22
public
:
24
BDM1Q2DLocalCoefficients
() : li(8)
25
{
26
for
(std::size_t i = 0; i < 4; ++i)
27
{
28
li[2*i] =
LocalKey
(i,1,0);
29
li[2*i + 1] =
LocalKey
(i,1,1);
30
}
31
}
32
34
std::size_t
size
()
const
35
{
36
return
8;
37
}
38
40
const
LocalKey
&
localKey
(std::size_t i)
const
41
{
42
return
li[i];
43
}
44
45
private
:
46
std::vector<LocalKey> li;
47
};
48
}
49
#endif // DUNE_LOCALFUNCTIONS_BREZZIDOUGLASMARINI1Q2DLOCALCOEFFICIENTS_HH
Generated on Mon May 20 2013 01:06:58 for dune-localfunctions by
1.8.3.1