dune-localfunctions
2.2.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
localfunctions
lagrange
p0.hh
Go to the documentation of this file.
1
// -*- tab-width: 4; indent-tabs-mode: nil -*-
2
// vi: set ts=4 sw=2 et sts=2:
3
#ifndef DUNE_P0LOCALFINITEELEMENT_HH
4
#define DUNE_P0LOCALFINITEELEMENT_HH
5
6
#include <dune/geometry/type.hh>
7
8
#include <
dune/localfunctions/common/localfiniteelementtraits.hh
>
9
#include "
p0/p0localbasis.hh
"
10
#include "
p0/p0localcoefficients.hh
"
11
#include "
p0/p0localinterpolation.hh
"
12
13
namespace
Dune
14
{
15
21
template
<
class
D,
class
R,
int
d>
22
class
P0LocalFiniteElement
23
{
24
public
:
27
typedef
LocalFiniteElementTraits<P0LocalBasis<D,R,d>
,
P0LocalCoefficients
,
28
P0LocalInterpolation<P0LocalBasis<D,R,d>
> >
Traits
;
29
32
P0LocalFiniteElement
(
const
GeometryType&
type
)
33
: interpolation(type), gt(type)
34
{}
35
38
P0LocalFiniteElement
(GeometryType::BasicType basicType) DUNE_DEPRECATED
39
: interpolation(GeometryType(basicType,d)), gt(basicType,d)
40
{}
41
44
const
typename
Traits::LocalBasisType
&
localBasis
()
const
45
{
46
return
basis;
47
}
48
51
const
typename
Traits::LocalCoefficientsType
&
localCoefficients
()
const
52
{
53
return
coefficients;
54
}
55
58
const
typename
Traits::LocalInterpolationType
&
localInterpolation
()
const
59
{
60
return
interpolation;
61
}
62
65
GeometryType
type
()
const
66
{
67
return
gt;
68
}
69
70
P0LocalFiniteElement
*
clone
()
const
71
{
72
return
new
P0LocalFiniteElement
(*
this
);
73
}
74
75
private
:
76
P0LocalBasis<D,R,d>
basis;
77
P0LocalCoefficients
coefficients;
78
P0LocalInterpolation<P0LocalBasis<D,R,d>
> interpolation;
79
GeometryType gt;
80
};
81
82
}
83
84
#endif
Generated on Mon May 20 2013 01:06:58 for dune-localfunctions by
1.8.3.1