dune-localfunctions
2.3beta2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
localfunctions
raviartthomas
raviartthomas02d.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_RAVIARTTHOMAS02DLOCALFINITEELEMENT_HH
4
#define DUNE_RAVIARTTHOMAS02DLOCALFINITEELEMENT_HH
5
6
#include <dune/geometry/type.hh>
7
8
#include <
dune/localfunctions/common/localfiniteelementtraits.hh
>
9
#include "
raviartthomas02d/raviartthomas02dlocalbasis.hh
"
10
#include "
raviartthomas02d/raviartthomas02dlocalcoefficients.hh
"
11
#include "
raviartthomas02d/raviartthomas02dlocalinterpolation.hh
"
12
13
namespace
Dune
14
{
15
22
template
<
class
D,
class
R>
23
class
24
RT02DLocalFiniteElement
25
{
26
public
:
27
typedef
LocalFiniteElementTraits<RT02DLocalBasis<D,R>
,
RT02DLocalCoefficients
,
28
RT02DLocalInterpolation<RT02DLocalBasis<D,R>
> >
Traits
;
29
31
RT02DLocalFiniteElement
()
32
{
33
gt.makeTriangle();
34
}
35
41
RT02DLocalFiniteElement
(
int
s) : basis(s), interpolation(s)
42
{
43
gt.makeTriangle();
44
}
45
46
const
typename
Traits::LocalBasisType
& localBasis ()
const
47
{
48
return
basis;
49
}
50
51
const
typename
Traits::LocalCoefficientsType
& localCoefficients ()
const
52
{
53
return
coefficients;
54
}
55
56
const
typename
Traits::LocalInterpolationType
& localInterpolation ()
const
57
{
58
return
interpolation;
59
}
60
61
GeometryType type ()
const
62
{
63
return
gt;
64
}
65
66
private
:
67
RT02DLocalBasis<D,R>
basis;
68
RT02DLocalCoefficients coefficients;
69
RT02DLocalInterpolation<RT02DLocalBasis<D,R>
> interpolation;
70
GeometryType gt;
71
};
72
73
}
74
75
#endif
Generated on Mon Feb 10 2014 21:19:25 for dune-localfunctions by
1.8.1.2