dune-localfunctions
2.2.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
localfunctions
refined
refinedp0
refinedp0localcoefficients.hh
Go to the documentation of this file.
1
// -*- tab-width: 8; indent-tabs-mode: nil -*-
2
// vi: set ts=8 sw=2 et sts=2:
3
#ifndef DUNE_REFINED_P0_LOCALCOEFFICIENTS_HH
4
#define DUNE_REFINED_P0_LOCALCOEFFICIENTS_HH
5
6
#include <cstddef>
7
#include <iostream>
8
#include <vector>
9
10
#include <
dune/localfunctions/common/localkey.hh
>
11
12
namespace
Dune
13
{
14
21
template
<
unsigned
int
k>
22
class
RefinedP0LocalCoefficients
23
{
24
// 2 to the k-th power
25
enum
{N = 1<<k};
26
27
public
:
28
RefinedP0LocalCoefficients
() :
29
localKeys_(N)
30
{
31
// All functions are associated to the element
32
for
(
int
i = 0; i < N; ++i)
33
localKeys_[i] =
LocalKey
(0,0,i);
34
}
35
37
std::size_t
size
()
const
38
{
39
return
N;
40
}
41
43
const
LocalKey
&
localKey
(std::size_t i)
const
44
{
45
return
localKeys_[i];
46
}
47
48
private
:
49
std::vector<LocalKey> localKeys_;
50
51
};
52
53
}
54
55
#endif
Generated on Mon May 20 2013 01:06:59 for dune-localfunctions by
1.8.3.1