dune-localfunctions
2.2.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
localfunctions
hierarchical
hierarchicalp2withelementbubble.hh
Go to the documentation of this file.
1
#ifndef DUNE_HIERARCHICAL_P2_WITH_ELEMENTBUBBLE_LOCALFINITEELEMENT_HH
2
#define DUNE_HIERARCHICAL_P2_WITH_ELEMENTBUBBLE_LOCALFINITEELEMENT_HH
3
4
#include <dune/geometry/type.hh>
5
6
#include <
dune/localfunctions/common/localfiniteelementtraits.hh
>
7
#include <
dune/localfunctions/hierarchical/hierarchicalp2withelementbubble/hierarchicalsimplexp2withelementbubble.hh
>
8
9
10
namespace
Dune
11
{
12
15
template
<
class
D,
class
R,
int
dim>
16
class
HierarchicalP2WithElementBubbleLocalFiniteElement
17
{
18
19
dune_static_assert(dim==2,
"HierarchicalP2WithElementBubbleLocalFiniteElement only implemented for dim==2."
);
20
21
public
:
24
typedef
LocalFiniteElementTraits<HierarchicalSimplexP2WithElementBubbleLocalBasis<D,R,dim>
,
25
HierarchicalSimplexP2WithElementBubbleLocalCoefficients<dim>
,
26
HierarchicalSimplexP2WithElementBubbleLocalInterpolation<HierarchicalSimplexP2WithElementBubbleLocalBasis<D,R,dim>
> >
Traits
;
27
30
HierarchicalP2WithElementBubbleLocalFiniteElement
()
31
{
32
gt_.makeTriangle();
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
HierarchicalP2WithElementBubbleLocalFiniteElement
*
clone
()
const
64
{
65
return
new
HierarchicalP2WithElementBubbleLocalFiniteElement
(*
this
);
66
}
67
68
private
:
69
HierarchicalSimplexP2WithElementBubbleLocalBasis<D,R,dim>
basis_;
70
71
HierarchicalSimplexP2WithElementBubbleLocalCoefficients<dim>
coefficients_;
72
73
HierarchicalSimplexP2WithElementBubbleLocalInterpolation<HierarchicalSimplexP2WithElementBubbleLocalBasis<D,R,dim>
> interpolation_;
74
75
GeometryType gt_;
76
};
77
78
}
79
80
#endif
Generated on Mon May 20 2013 01:06:58 for dune-localfunctions by
1.8.3.1