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