dune-localfunctions
2.3beta2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
localfunctions
raviartthomas
raviartthomas02d
raviartthomas02dlocalcoefficients.hh
Go to the documentation of this file.
1
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2
// vi: set et ts=4 sw=2 sts=2:
3
#ifndef DUNE_RT0TRIANGLELOCALCOEFFICIENTS_HH
4
#define DUNE_RT0TRIANGLELOCALCOEFFICIENTS_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
class
RT02DLocalCoefficients
22
{
23
public
:
25
RT02DLocalCoefficients
() : li(3)
26
{
27
for
(std::size_t i=0; i<3; i++)
28
li[i] =
LocalKey
(i,1,0);
29
}
30
32
std::size_t
size
()
const
33
{
34
return
3;
35
}
36
38
const
LocalKey
&
localKey
(std::size_t i)
const
39
{
40
return
li[i];
41
}
42
43
private
:
44
std::vector<LocalKey> li;
45
};
46
47
}
48
49
#endif
Generated on Mon Feb 10 2014 21:19:25 for dune-localfunctions by
1.8.1.2