dune-localfunctions
2.2.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
localfunctions
lagrange
pyramidp1.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
4
#ifndef DUNE_PYRAMID_P1_LOCALFINITEELEMENT_HH
5
#define DUNE_PYRAMID_P1_LOCALFINITEELEMENT_HH
6
7
#include <dune/geometry/type.hh>
8
9
#include <
dune/localfunctions/common/localfiniteelementtraits.hh
>
10
11
#include "
pyramidp1/pyramidp1localbasis.hh
"
12
#include "
pyramidp1/pyramidp1localcoefficients.hh
"
13
#include "
pyramidp1/pyramidp1localinterpolation.hh
"
14
15
namespace
Dune
16
{
17
20
template
<
class
D,
class
R>
21
class
PyramidP1LocalFiniteElement
22
{
23
public
:
26
typedef
LocalFiniteElementTraits<PyramidP1LocalBasis<D,R>
,
PyramidP1LocalCoefficients
,
27
PyramidP1LocalInterpolation<PyramidP1LocalBasis<D,R>
> >
Traits
;
28
29
30
33
PyramidP1LocalFiniteElement
()
34
{
35
gt.makePyramid();
36
}
37
38
41
const
typename
Traits::LocalBasisType
&
localBasis
()
const
42
{
43
return
basis;
44
}
45
48
const
typename
Traits::LocalCoefficientsType
&
localCoefficients
()
const
49
{
50
return
coefficients;
51
}
52
55
const
typename
Traits::LocalInterpolationType
&
localInterpolation
()
const
56
{
57
return
interpolation;
58
}
59
62
GeometryType
type
()
const
63
{
64
return
gt;
65
}
66
67
PyramidP1LocalFiniteElement
*
clone
()
const
68
{
69
return
new
PyramidP1LocalFiniteElement
(*
this
);
70
}
71
72
private
:
73
PyramidP1LocalBasis<D,R>
basis;
74
PyramidP1LocalCoefficients
coefficients;
75
PyramidP1LocalInterpolation<PyramidP1LocalBasis<D,R>
> interpolation;
76
GeometryType gt;
77
};
78
79
}
80
81
#endif
Generated on Mon May 20 2013 01:06:59 for dune-localfunctions by
1.8.3.1