dune-fem 2.12-git
Loading...
Searching...
No Matches
hierarchiclegendre.hh
Go to the documentation of this file.
1#ifndef DUNE_FEM_SPACE_DISCONTINUOUSGALERKIN_HLEGENDRE_HH
2#define DUNE_FEM_SPACE_DISCONTINUOUSGALERKIN_HLEGENDRE_HH
3
4#include <cassert>
5
7
9
18
19#include "legendre.hh"
20
21namespace Dune
22{
23
24 namespace Fem
25 {
26
27 // HierarchicalLegendreDiscontinuousGalerkinSpace
28 // ----------------------------------------------
29
30 template< class FunctionSpace, class GridPart, int polOrder, class Storage >
32 : public LegendreDiscontinuousGalerkinSpaceBase< FunctionSpace, GridPart, polOrder, Storage, true >
33 {
34 // hierarchicalOrdering = true
37
38 public:
43
45 const InterfaceType commInterface = InteriorBorder_All_Interface,
46 const CommunicationDirection commDirection = ForwardCommunication )
47 : BaseType( gridPart, commInterface, commDirection )
48 {}
49
51 {
52 return InterpolationType( *this );
53 }
54
55 [[deprecated("Use LocalInterpolation( space ) instead!")]]
57 {
58 return interpolation();
59 }
60
62 {
63 return interpolation();
64 }
66 {
67 return interpolation();
68 }
69
70
71 };
72
73 namespace Capabilities
74 {
75
76 template< class FunctionSpace, class GridPart, int polOrder, class Storage >
78 {
79 static const bool v = true;
80 };
81
82 template< class FunctionSpace, class GridPart, int polOrder, class Storage >
84 {
85 static const bool v = true;
86 static const int order = polOrder;
87 };
88
89 template< class FunctionSpace, class GridPart, int polOrder, class Storage >
91 {
92 static const bool v = false;
93 };
94
95 template< class FunctionSpace, class GridPart, int polOrder, class Storage >
97 {
98 static const bool v = true;
99 };
100
101 template< class FunctionSpace, class GridPart, int polOrder, class Storage >
103 {
104 static const bool v = true;
105 };
106
107 template< class FunctionSpace, class GridPart, int polOrder, class Storage >
109 {
110 static const bool v = false;
111 };
112
113 template< class FunctionSpace, class GridPart, int polOrder, class Storage >
115 {
116 static const bool v = true;
117 };
118
119 template< class FunctionSpace, class GridPart, int polOrder, class Storage >
121 {
122 static const bool v = true;
123 };
124
125 } // namespace Capabilities
126
127 } // namespace Fem
128
129} // namespace Dune
130
131#endif // #ifndef DUNE_FEM_SPACE_DISCONTINUOUSGALERKIN_HLEGENDRE_HH
CommunicationDirection
InterfaceType
ForwardCommunication
InteriorBorder_All_Interface
specialize with true if polynomial order does not depend on the grid (part) entity
Definition space/common/capabilities.hh:24
static const bool v
Definition space/common/capabilities.hh:25
specialize with true if polynomial order fixed and compile time static
Definition space/common/capabilities.hh:37
static const bool v
Definition space/common/capabilities.hh:38
static const int order
Definition space/common/capabilities.hh:39
specialize with true if space is always continuous
Definition space/common/capabilities.hh:50
static const bool v
Definition space/common/capabilities.hh:51
specialize with true if the space is localized, * i.e., the basis function set is based on a shape fu...
Definition space/common/capabilities.hh:68
static const bool v
Definition space/common/capabilities.hh:69
specialize with true if space can be used with AdaptiveDiscreteFunction
Definition space/common/capabilities.hh:81
static const bool v
Definition space/common/capabilities.hh:82
specialize with true if the space implementation is thread safe
Definition space/common/capabilities.hh:105
static const bool v
Definition space/common/capabilities.hh:106
specialize with true if the space implementation is thread safe, while it is not modified
Definition space/common/capabilities.hh:119
static const bool v
Definition space/common/capabilities.hh:120
specialize with true if for a space the basis functions are sorted by the polynomial order,...
Definition space/common/capabilities.hh:131
static const bool v
Definition space/common/capabilities.hh:132
GridPartType & gridPart() const
Definition discretefunctionspace.hh:766
A vector valued function space.
Definition functionspace.hh:60
BaseType::GridPartType GridPartType
Definition hierarchiclegendre.hh:39
InterpolationType interpolation(const EntityType &entity) const
Definition hierarchiclegendre.hh:56
DiscontinuousGalerkinLocalInterpolation< ThisType > InterpolationType
Definition hierarchiclegendre.hh:41
InterpolationType interpolation() const
Definition hierarchiclegendre.hh:50
HierarchicLegendreDiscontinuousGalerkinSpace(GridPartType &gridPart, const InterfaceType commInterface=InteriorBorder_All_Interface, const CommunicationDirection commDirection=ForwardCommunication)
Definition hierarchiclegendre.hh:44
InterpolationType localInterpolation() const
Definition hierarchiclegendre.hh:61
InterpolationType localInterpolation(const EntityType &entity) const
Definition hierarchiclegendre.hh:65
BaseType::EntityType EntityType
Definition hierarchiclegendre.hh:40
InterpolationType InterpolationImplType
Definition hierarchiclegendre.hh:42
Definition discontinuousgalerkin/legendre.hh:103
BaseType::EntityType EntityType
Definition discontinuousgalerkin/legendre.hh:113
BaseType::GridPartType GridPartType
Definition discontinuousgalerkin/legendre.hh:112
Definition discontinuousgalerkin/localinterpolation.hh:30