dune-localfunctions
2.2.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
localfunctions
lagrange
q1
q1localcoefficients.hh
Go to the documentation of this file.
1
#ifndef DUNE_Q1_LOCALCOEFFICIENTS_HH
2
#define DUNE_Q1_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
19
template
<
int
dim>
20
class
Q1LocalCoefficients
21
{
22
public
:
24
Q1LocalCoefficients
() : li(1<<dim)
25
{
26
for
(std::size_t i=0; i<(1<<dim); i++)
27
li[i] =
LocalKey
(i,dim,0);
28
}
29
31
std::size_t
size
()
const
32
{
33
return
1<<dim;
34
}
35
37
const
LocalKey
&
localKey
(std::size_t i)
const
38
{
39
return
li[i];
40
}
41
42
private
:
43
std::vector<LocalKey> li;
44
};
45
46
}
47
48
#endif
Generated on Mon May 20 2013 01:06:59 for dune-localfunctions by
1.8.3.1