dune-localfunctions
2.3beta2
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
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2
// vi: set et ts=4 sw=2 sts=2:
3
#ifndef DUNE_HIERARCHICAL_P2_WITH_ELEMENTBUBBLE_LOCALFINITEELEMENT_HH
4
#define DUNE_HIERARCHICAL_P2_WITH_ELEMENTBUBBLE_LOCALFINITEELEMENT_HH
5
6
#include <dune/geometry/type.hh>
7
8
#include <
dune/localfunctions/common/localfiniteelementtraits.hh
>
9
#include <
dune/localfunctions/hierarchical/hierarchicalp2withelementbubble/hierarchicalsimplexp2withelementbubble.hh
>
10
11
12
namespace
Dune
13
{
14
17
template
<
class
D,
class
R,
int
dim>
18
class
HierarchicalP2WithElementBubbleLocalFiniteElement
19
{
20
21
dune_static_assert(dim==2,
"HierarchicalP2WithElementBubbleLocalFiniteElement only implemented for dim==2."
);
22
23
public
:
26
typedef
LocalFiniteElementTraits<HierarchicalSimplexP2WithElementBubbleLocalBasis<D,R,dim>
,
27
HierarchicalSimplexP2WithElementBubbleLocalCoefficients<dim>
,
28
HierarchicalSimplexP2WithElementBubbleLocalInterpolation<HierarchicalSimplexP2WithElementBubbleLocalBasis<D,R,dim>
> >
Traits
;
29
32
HierarchicalP2WithElementBubbleLocalFiniteElement
()
33
{
34
gt_.makeTriangle();
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
HierarchicalP2WithElementBubbleLocalFiniteElement
*
clone
()
const
66
{
67
return
new
HierarchicalP2WithElementBubbleLocalFiniteElement
(*
this
);
68
}
69
70
private
:
71
HierarchicalSimplexP2WithElementBubbleLocalBasis<D,R,dim>
basis_;
72
73
HierarchicalSimplexP2WithElementBubbleLocalCoefficients<dim>
coefficients_;
74
75
HierarchicalSimplexP2WithElementBubbleLocalInterpolation<HierarchicalSimplexP2WithElementBubbleLocalBasis<D,R,dim>
> interpolation_;
76
77
GeometryType gt_;
78
};
79
80
}
81
82
#endif
Generated on Mon Feb 10 2014 21:19:24 for dune-localfunctions by
1.8.1.2