dune-localfunctions
2.3.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; c-basic-offset: 2 -*-
2
// vi: set et ts=4 sw=2 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
const
typename
Traits::LocalBasisType
&
localBasis
()
const
39
{
40
return
basis;
41
}
42
45
const
typename
Traits::LocalCoefficientsType
&
localCoefficients
()
const
46
{
47
return
coefficients;
48
}
49
52
const
typename
Traits::LocalInterpolationType
&
localInterpolation
()
const
53
{
54
return
interpolation;
55
}
56
59
GeometryType
type
()
const
60
{
61
return
gt;
62
}
63
64
P0LocalFiniteElement
*
clone
()
const
65
{
66
return
new
P0LocalFiniteElement
(*
this
);
67
}
68
69
private
:
70
P0LocalBasis<D,R,d>
basis;
71
P0LocalCoefficients
coefficients;
72
P0LocalInterpolation<P0LocalBasis<D,R,d>
> interpolation;
73
GeometryType gt;
74
};
75
76
}
77
78
#endif
Generated on Mon Nov 24 2014 20:50:33 for dune-localfunctions by
1.8.1.2