dune-localfunctions
2.3.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
localfunctions
raviartthomas
raviartthomas0cube2d.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_LOCALFUNCTIONS_RAVIARTTHOMAS0_CUBE2D_LOCALFINITEELEMENT_HH
4
#define DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS0_CUBE2D_LOCALFINITEELEMENT_HH
5
6
#include <dune/geometry/type.hh>
7
8
#include <
dune/localfunctions/common/localfiniteelementtraits.hh
>
9
#include "
raviartthomas0cube2d/raviartthomas0cube2dall.hh
"
10
11
namespace
Dune
12
{
13
template
<
class
D,
class
R>
14
class
RT0Cube2DLocalFiniteElement
15
{
16
public
:
17
typedef
LocalFiniteElementTraits
<
18
RT0Cube2DLocalBasis<D,R>
,
19
RT0Cube2DLocalCoefficients
,
20
RT0Cube2DLocalInterpolation<RT0Cube2DLocalBasis<D,R>
> >
Traits
;
21
22
RT0Cube2DLocalFiniteElement
()
23
{
24
gt.makeQuadrilateral();
25
}
26
27
RT0Cube2DLocalFiniteElement
(
int
s) : basis(s), interpolation(s)
28
{
29
gt.makeQuadrilateral();
30
}
31
32
const
typename
Traits::LocalBasisType
&
localBasis
()
const
33
{
34
return
basis;
35
}
36
37
const
typename
Traits::LocalCoefficientsType
&
localCoefficients
()
const
38
{
39
return
coefficients;
40
}
41
42
const
typename
Traits::LocalInterpolationType
&
localInterpolation
()
const
43
{
44
return
interpolation;
45
}
46
47
GeometryType
type
()
const
48
{
49
return
gt;
50
}
51
52
private
:
53
RT0Cube2DLocalBasis<D,R>
basis;
54
RT0Cube2DLocalCoefficients
coefficients;
55
RT0Cube2DLocalInterpolation<RT0Cube2DLocalBasis<D,R>
> interpolation;
56
GeometryType gt;
57
};
58
}
59
#endif // DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS0_CUBE2D_LOCALFINITEELEMENT_HH
Generated on Mon Nov 24 2014 20:50:33 for dune-localfunctions by
1.8.1.2