dune-localfunctions
2.2.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
localfunctions
raviartthomas
raviartthomas12d.hh
Go to the documentation of this file.
1
#ifndef DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS12DLOCALFINITEELEMENT_HH
2
#define DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS12DLOCALFINITEELEMENT_HH
3
4
#include <dune/geometry/type.hh>
5
6
#include "../common/localfiniteelementtraits.hh"
7
#include "
raviartthomas12d/raviartthomas12dlocalbasis.hh
"
8
#include "
raviartthomas12d/raviartthomas12dlocalcoefficients.hh
"
9
#include "
raviartthomas12d/raviartthomas12dlocalinterpolation.hh
"
10
11
namespace
Dune
12
{
13
20
template
<
class
D,
class
R>
21
class
RT12DLocalFiniteElement
22
{
23
24
public
:
25
typedef
LocalFiniteElementTraits<RT12DLocalBasis<D,R>
,
RT12DLocalCoefficients
,
26
RT12DLocalInterpolation<RT12DLocalBasis<D,R>
> >
Traits
;
27
29
RT12DLocalFiniteElement
()
30
{
31
gt.makeTriangle();
32
}
33
39
RT12DLocalFiniteElement
(
int
s) : basis(s), interpolation(s)
40
{
41
gt.makeTriangle();
42
}
43
44
const
typename
Traits::LocalBasisType
&
localBasis
()
const
45
{
46
return
basis;
47
}
48
49
const
typename
Traits::LocalCoefficientsType
&
localCoefficients
()
const
50
{
51
return
coefficients;
52
}
53
54
const
typename
Traits::LocalInterpolationType
&
localInterpolation
()
const
55
{
56
return
interpolation;
57
}
58
59
GeometryType
type
()
const
60
{
61
return
gt;
62
}
63
64
private
:
65
RT12DLocalBasis<D,R>
basis;
66
RT12DLocalCoefficients
coefficients;
67
RT12DLocalInterpolation<RT12DLocalBasis<D,R>
> interpolation;
68
GeometryType gt;
69
};
70
}
71
72
#endif // DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS12DLOCALFINITEELEMENT_HH
Generated on Mon May 20 2013 01:06:59 for dune-localfunctions by
1.8.3.1