dune-localfunctions
2.2.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
localfunctions
lagrange
pk3d.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_Pk3DLOCALFINITEELEMENT_HH
4
#define DUNE_Pk3DLOCALFINITEELEMENT_HH
5
6
#include <dune/geometry/type.hh>
7
8
#include <
dune/localfunctions/common/localfiniteelementtraits.hh
>
9
#include "
pk3d/pk3dlocalbasis.hh
"
10
#include "
pk3d/pk3dlocalcoefficients.hh
"
11
#include "
pk3d/pk3dlocalinterpolation.hh
"
12
13
namespace
Dune
14
{
15
18
template
<
class
D,
class
R,
unsigned
int
k>
19
class
Pk3DLocalFiniteElement
20
{
21
public
:
24
typedef
LocalFiniteElementTraits<Pk3DLocalBasis<D,R,k>
,
25
Pk3DLocalCoefficients<k>
,
26
Pk3DLocalInterpolation<Pk3DLocalBasis<D,R,k>
> >
Traits
;
27
30
Pk3DLocalFiniteElement
()
31
{
32
gt.makeTetrahedron();
33
}
34
41
Pk3DLocalFiniteElement
(
const
unsigned
int
vertexmap[4]) : coefficients(vertexmap)
42
{
43
gt.makeTetrahedron();
44
}
45
48
const
typename
Traits::LocalBasisType
&
localBasis
()
const
49
{
50
return
basis;
51
}
52
55
const
typename
Traits::LocalCoefficientsType
&
localCoefficients
()
const
56
{
57
return
coefficients;
58
}
59
62
const
typename
Traits::LocalInterpolationType
&
localInterpolation
()
const
63
{
64
return
interpolation;
65
}
66
69
GeometryType
type
()
const
70
{
71
return
gt;
72
}
73
74
Pk3DLocalFiniteElement
*
clone
()
const
75
{
76
return
new
Pk3DLocalFiniteElement
(*
this
);
77
}
78
79
private
:
80
Pk3DLocalBasis<D,R,k>
basis;
81
Pk3DLocalCoefficients<k>
coefficients;
82
Pk3DLocalInterpolation<Pk3DLocalBasis<D,R,k>
> interpolation;
83
GeometryType gt;
84
};
85
86
}
87
88
#endif
Generated on Mon May 20 2013 01:06:58 for dune-localfunctions by
1.8.3.1