dune-localfunctions
2.2.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
localfunctions
lagrange
p1.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_P1LOCALFINITEELEMENT_HH
4
#define DUNE_P1LOCALFINITEELEMENT_HH
5
6
#include <dune/geometry/type.hh>
7
8
#include <
dune/localfunctions/common/localfiniteelementtraits.hh
>
9
#include "
p1/p1localbasis.hh
"
10
#include "
p1/p1localcoefficients.hh
"
11
#include "
p1/p1localinterpolation.hh
"
12
13
namespace
Dune
14
{
15
21
template
<
class
D,
class
R,
int
dim>
22
class
P1LocalFiniteElement
23
{
24
public
:
27
typedef
LocalFiniteElementTraits<P1LocalBasis<D,R,dim>
,
P1LocalCoefficients<dim>
,
28
P1LocalInterpolation<dim,P1LocalBasis<D,R,dim>
> >
Traits
;
29
32
P1LocalFiniteElement
()
33
{
34
gt.makeSimplex(dim);
35
}
36
39
const
typename
Traits::LocalBasisType
&
localBasis
()
const
40
{
41
return
basis;
42
}
43
46
const
typename
Traits::LocalCoefficientsType
&
localCoefficients
()
const
47
{
48
return
coefficients;
49
}
50
53
const
typename
Traits::LocalInterpolationType
&
localInterpolation
()
const
54
{
55
return
interpolation;
56
}
57
60
GeometryType
type
()
const
61
{
62
return
gt;
63
}
64
65
P1LocalFiniteElement
*
clone
()
const
66
{
67
return
new
P1LocalFiniteElement
(*
this
);
68
}
69
70
private
:
71
P1LocalBasis<D,R,dim>
basis;
72
P1LocalCoefficients<dim>
coefficients;
73
P1LocalInterpolation<dim,P1LocalBasis<D,R,dim>
> interpolation;
74
GeometryType gt;
75
};
76
77
78
79
}
80
81
#endif
Generated on Mon May 20 2013 01:06:58 for dune-localfunctions by
1.8.3.1