Dune Core Modules (2.4.1)

capabilities.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_CAPABILITIES_HH
4#define DUNE_CAPABILITIES_HH
5
7
12namespace Dune
13{
14
16 namespace Capabilities
17 {
18
25 template<class Grid>
27 {
28 static const bool v = false;
29 // this value will be initialized with something big
30 // since it is invalid
31 static const unsigned int topologyId = ~0u;
32 };
33
46 template<class Grid>
48 {
49 // default value is false
50 static const bool v = false;
51 };
52
56 template<class Grid, int codim>
57 struct hasEntity
58 {
59 static const bool v = false;
60 };
61
67 template<class Grid>
68 struct
69#ifndef DUNE_AVOID_CAPABILITIES_IS_PARALLEL_DEPRECATION_WARNING
70 DUNE_DEPRECATED_MSG("Capabilities::isParallel will be removed after dune-grid-2.4.")
71#endif
73 {
74 static const bool
75#ifndef DUNE_AVOID_CAPABILITIES_IS_PARALLEL_DEPRECATION_WARNING
76 DUNE_DEPRECATED_MSG("Capabilities::isParallel will be removed after dune-grid-2.4.")
77#endif
78 v = false;
79 };
80
88 template< class Grid, int codim >
90 {
91 static const bool v = false;
92 };
93
97 template<class Grid>
99 {
100 static const bool v = false;
101 };
102
106 template<class Grid>
108 {
109 static const bool v = false;
110 };
111
115 template<class Grid>
117 {
118 static const bool v = false;
119 };
120
134 template <class Grid>
135 struct threadSafe {
136 static const bool v = false;
137 };
138
161 template <class Grid>
163 static const bool v = false;
164 };
165
166 /*
167 forward
168 Capabilities::Something<const Grid>
169 to
170 Capabilities::Something<Grid>
171 */
172
173 template<class Grid>
174 struct hasSingleGeometryType< const Grid >
175 {
177 static const unsigned int topologyId =
179 };
180
181 template<class Grid>
182 struct isCartesian< const Grid >
183 {
184 static const bool v = Dune::Capabilities::isCartesian<Grid>::v;
185 };
186
187 template<class Grid, int codim>
188 struct hasEntity<const Grid, codim>
189 {
191 };
192
193 template<class Grid>
194 struct
195#ifndef DUNE_AVOID_CAPABILITIES_IS_PARALLEL_DEPRECATION_WARNING
196 DUNE_DEPRECATED_MSG("Will be removed after dune-grid-2.4.")
197#endif
198 isParallel<const Grid>
199 {
200 static const bool v = Dune::Capabilities::isParallel<Grid>::v;
201 };
202
203 template< class Grid, int codim >
204 struct canCommunicate< const Grid, codim >
205 {
207 };
208
209 template<class Grid>
210 struct isLevelwiseConforming<const Grid>
211 {
213 };
214
215 template<class Grid>
216 struct isLeafwiseConforming<const Grid>
217 {
219 };
220
221 template<class Grid>
222 struct hasBackupRestoreFacilities<const Grid>
223 {
225 };
226
227 template <class Grid>
228 struct threadSafe<const Grid> {
229 static const bool v = Dune::Capabilities::threadSafe<Grid>::v;
230 };
231
232 template <class Grid>
233 struct viewThreadSafe<const Grid> {
235 };
236
237 }
238
239}
240
241#endif // DUNE_CAPABILITIES_HH
Grid abstract base class.
Definition: grid.hh:388
Definition of the DUNE_DEPRECATED macro for the case that config.h is not available.
struct DUNE_DEPRECATED_MSG("Capabilities::isParallel will be removed after dune-grid-2.4.") isParallel< ALU3dGrid< elType
YaspGrid is parallel.
Dune namespace.
Definition: alignment.hh:10
specialize with 'true' for all codims that a grid can communicate data on (default=false)
Definition: capabilities.hh:90
Specialize with 'true' if implementation provides backup and restore facilities. (default=false)
Definition: capabilities.hh:117
Specialize with 'true' for all codims that a grid implements entities for. (default=false)
Definition: capabilities.hh:58
Specialize with 'true' for if the codimension 0 entity of the grid has only one possible geometry typ...
Definition: capabilities.hh:27
Specialize with 'true' if the grid is a Cartesian grid. Cartesian grids satisfy the following propert...
Definition: capabilities.hh:48
Specialize with 'true' if implementation guarantees a conforming leaf grid. (default=false)
Definition: capabilities.hh:108
Specialize with 'true' if implementation guarantees conforming level grids. (default=false)
Definition: capabilities.hh:99
Specialize with 'true' if implementation supports parallelism. (default=false)
Definition: capabilities.hh:73
Specialize with 'true' if the grid implementation is thread safe. (default=false)
Definition: capabilities.hh:135
Specialize with 'true' if the grid implementation is thread safe, while it is not modified....
Definition: capabilities.hh:162
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 21, 23:30, 2024)