DUNE-FEM (unstable)

capabilities.hh
1#ifndef DUNE_FEM_SPACE_PADAPTIVESPACE_CAPABILITIES_HH
2#define DUNE_FEM_SPACE_PADAPTIVESPACE_CAPABILITIES_HH
3
4#include <dune/fem/gridpart/common/capabilities.hh>
5#include <dune/fem/space/common/capabilities.hh>
6#include <dune/fem/space/padaptivespace/declaration.hh>
7
8namespace Dune
9{
10
11 namespace Fem
12 {
13
14 namespace Capabilities
15 {
16
17 // Dune::Fem::Capabilities for PAdaptiveDGSpace
18 // --------------------------------------------
19
20 template< class FunctionSpace, class GridPart, int polOrder, class Storage >
21 struct hasFixedPolynomialOrder< PAdaptiveDGSpace< FunctionSpace, GridPart, polOrder, Storage > >
22 {
23 static const bool v = false;
24 };
25
26
27 template< class FunctionSpace, class GridPart, int polOrder, class Storage >
28 struct hasStaticPolynomialOrder< PAdaptiveDGSpace< FunctionSpace, GridPart, polOrder, Storage > >
29 {
30 static const bool v = true;
31 static const int order = polOrder;
32 };
33
34
35 template< class FunctionSpace, class GridPart, int polOrder, class Storage >
36 struct isContinuous< PAdaptiveDGSpace< FunctionSpace, GridPart, polOrder, Storage > >
37 {
38 static const bool v = false;
39 };
40
41
42 template< class FunctionSpace, class GridPart, int polOrder, class Storage >
43 struct isLocalized< PAdaptiveDGSpace< FunctionSpace, GridPart, polOrder, Storage > >
44 {
45 static const bool v = true;
46 };
47
48
49 template< class FunctionSpace, class GridPart, int polOrder, class Storage >
50 struct isAdaptive< PAdaptiveDGSpace< FunctionSpace, GridPart, polOrder, Storage > >
51 {
52 static const bool v = true;
53 };
54
55
56 template< class FunctionSpace, class GridPart, int polOrder, class Storage >
57 struct threadSafe< PAdaptiveDGSpace< FunctionSpace, GridPart, polOrder, Storage > >
58 {
59 static const bool v = false;
60 };
61
62
63 template< class FunctionSpace, class GridPart, int polOrder, class Storage >
64 struct viewThreadSafe< PAdaptiveDGSpace< FunctionSpace, GridPart, polOrder, Storage > >
65 {
66 static const bool v = true;
67 };
68
69
70
71 // Dune::Fem::Capabilities for PAdaptiveLagrangeSpace
72 // --------------------------------------------------
73
74 template< class FunctionSpace, class GridPart, int polOrder, class Storage >
75 struct hasFixedPolynomialOrder< PAdaptiveLagrangeSpace< FunctionSpace, GridPart, polOrder, Storage > >
76 {
77 static const bool v = false;
78 };
79
80
81 template< class FunctionSpace, class GridPart, int polOrder, class Storage >
82 struct hasStaticPolynomialOrder< PAdaptiveLagrangeSpace< FunctionSpace, GridPart, polOrder, Storage > >
83 {
84 static const bool v = true;
85 static const int order = polOrder;
86 };
87
88
89 template< class FunctionSpace, class GridPart, int polOrder, class Storage >
90 struct isContinuous< PAdaptiveLagrangeSpace< FunctionSpace, GridPart, polOrder, Storage > >
91 {
92 static const bool v = false;
93 };
94
95
96 template< class FunctionSpace, class GridPart, int polOrder, class Storage >
97 struct isLocalized< PAdaptiveLagrangeSpace< FunctionSpace, GridPart, polOrder, Storage > >
98 {
99 static const bool v = true;
100 };
101
102
103 template< class FunctionSpace, class GridPart, int polOrder, class Storage >
104 struct isAdaptive< PAdaptiveLagrangeSpace< FunctionSpace, GridPart, polOrder, Storage > >
105 {
106 static const bool v = true;
107 };
108
109
110 template< class FunctionSpace, class GridPart, int polOrder, class Storage >
111 struct threadSafe< PAdaptiveLagrangeSpace< FunctionSpace, GridPart, polOrder, Storage > >
112 {
113 static const bool v = false;
114 };
115
116
117 template< class FunctionSpace, class GridPart, int polOrder, class Storage >
118 struct viewThreadSafe< PAdaptiveLagrangeSpace< FunctionSpace, GridPart, polOrder, Storage > >
119 {
120 static const bool v = true;
121 };
122
123 } // namespace Capabilities
124
125 } // namespace Fem
126
127} // namespace Dune
128
129#endif // #ifndef DUNE_FEM_SPACE_PADAPTIVESPACE_CAPABILITIES_HH
Dune namespace.
Definition: alignedallocator.hh:13
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 13, 23:29, 2024)