dune-localfunctions
2.2.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
localfunctions
raviartthomas
raviartthomas0q2d.hh
Go to the documentation of this file.
1
#ifndef DUNE_RAVIARTTHOMAS0Q2DLOCALFINITEELEMENT_HH
2
#define DUNE_RAVIARTTHOMAS0Q2DLOCALFINITEELEMENT_HH
3
4
#include <dune/geometry/type.hh>
5
6
#include <
dune/localfunctions/common/localfiniteelementtraits.hh
>
7
#include "
raviartthomas0q2d/raviartthomas0q2dall.hh
"
8
9
namespace
Dune
10
{
11
template
<
class
D,
class
R>
12
class
RT0Q2DLocalFiniteElement
13
{
14
public
:
15
typedef
LocalFiniteElementTraits<RT0Q2DLocalBasis<D,R>
,
RT0Q2DLocalCoefficients
,
16
RT0Q2DLocalInterpolation<RT0Q2DLocalBasis<D,R>
> >
Traits
;
17
18
RT0Q2DLocalFiniteElement
()
19
{
20
gt.makeQuadrilateral();
21
}
22
23
RT0Q2DLocalFiniteElement
(
int
s) : basis(s), interpolation(s)
24
{
25
gt.makeQuadrilateral();
26
}
27
28
const
typename
Traits::LocalBasisType
&
localBasis
()
const
29
{
30
return
basis;
31
}
32
33
const
typename
Traits::LocalCoefficientsType
&
localCoefficients
()
const
34
{
35
return
coefficients;
36
}
37
38
const
typename
Traits::LocalInterpolationType
&
localInterpolation
()
const
39
{
40
return
interpolation;
41
}
42
43
GeometryType
type
()
const
44
{
45
return
gt;
46
}
47
48
private
:
49
RT0Q2DLocalBasis<D,R>
basis;
50
RT0Q2DLocalCoefficients
coefficients;
51
RT0Q2DLocalInterpolation<RT0Q2DLocalBasis<D,R>
> interpolation;
52
GeometryType gt;
53
};
54
}
55
#endif
Generated on Mon May 20 2013 01:06:59 for dune-localfunctions by
1.8.3.1