dune-localfunctions
2.2.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
localfunctions
lagrange
p23d.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_P2_3DLOCALFINITEELEMENT_HH
4
#define DUNE_P2_3DLOCALFINITEELEMENT_HH
5
6
#include <dune/geometry/type.hh>
7
8
#include <
dune/localfunctions/common/localfiniteelementtraits.hh
>
9
#include "
p23d/p23dlocalbasis.hh
"
10
#include "
p23d/p23dlocalcoefficients.hh
"
11
#include "
p23d/p23dlocalinterpolation.hh
"
12
13
namespace
Dune
14
{
15
18
template
<
class
D,
class
R>
19
class
P23DLocalFiniteElement
20
{
21
public
:
24
typedef
LocalFiniteElementTraits<P23DLocalBasis<D,R>
,
25
P23DLocalCoefficients
,
26
P23DLocalInterpolation<P23DLocalBasis<D,R>
> >
Traits
;
27
30
P23DLocalFiniteElement
()
31
{
32
gt.makeTetrahedron();
33
}
34
37
const
typename
Traits::LocalBasisType
&
localBasis
()
const
38
{
39
return
basis;
40
}
41
44
const
typename
Traits::LocalCoefficientsType
&
localCoefficients
()
const
45
{
46
return
coefficients;
47
}
48
51
const
typename
Traits::LocalInterpolationType
&
localInterpolation
()
const
52
{
53
return
interpolation;
54
}
55
58
GeometryType
type
()
const
59
{
60
return
gt;
61
}
62
63
P23DLocalFiniteElement
*
clone
()
const
64
{
65
return
new
P23DLocalFiniteElement
(*
this
);
66
}
67
68
private
:
69
P23DLocalBasis<D,R>
basis;
70
P23DLocalCoefficients
coefficients;
71
P23DLocalInterpolation<P23DLocalBasis<D,R>
> interpolation;
72
GeometryType gt;
73
};
74
75
}
76
77
#endif
Generated on Mon May 20 2013 01:06:58 for dune-localfunctions by
1.8.3.1