3 #ifndef DUNE_GEOGRID_CAPABILITIES_HH
4 #define DUNE_GEOGRID_CAPABILITIES_HH
8 #include <dune/common/forloop.hh>
9 #include <dune/common/deprecated.hh>
20 namespace Capabilities
26 template<
class HostGr
id,
class CoordFunction,
class Allocator >
34 template<
class HostGr
id,
class CoordFunction,
class Allocator,
int codim >
37 static const bool v =
true;
41 template<
class HostGr
id,
class CoordFunction,
class Allocator >
42 struct DUNE_DEPRECATED_MSG("Capabilities::
isParallel will be removed after dune-grid-2.4.")
isParallel< GeometryGrid< HostGrid, CoordFunction, Allocator > >
44 static const bool DUNE_DEPRECATED_MSG(
"Capabilities::isParallel will be removed after dune-grid-2.4.") v =
isParallel< HostGrid >::v;
48 template< class HostGrid, class CoordFunction, class Allocator,
int codim >
55 template<
class HostGr
id,
class CoordFunction,
class Allocator >
61 template<
class HostGr
id,
class CoordFunction,
class Allocator >
67 template<
class HostGr
id,
class CoordFunction,
class Allocator >
73 template<
class HostGr
id,
class CoordFunction,
class Allocator >
76 static const bool v =
false;
79 template<
class HostGr
id,
class CoordFunction,
class Allocator >
82 static const bool v =
false;
91 template<
class Gr
id,
int codim >
94 template<
class Gr
id,
int codim >
100 template<
class HostGr
id,
class CoordFunction,
class Allocator,
int codim >
111 template<
class Gr
id >
116 template<
int codim >
123 Dune::ForLoop< BuildCache, 0, dimension >::apply( hasHostEntity_ );
135 assert( (codim >= 0) && (codim <= dimension) );
136 return instance().hasHostEntity_[ codim ];
140 template<
class Gr
id >
141 template<
int codim >
142 struct CodimCache<
Grid >::BuildCache
144 static void apply (
bool (&hasHostEntity)[ dimension + 1 ] )
154 #endif // #ifndef DUNE_GEOGRID_CAPABILITIES_HH
Specialize with 'true' if the grid implementation is thread safe, while it is not modified...
Definition: common/capabilities.hh:162
Specialize with 'true' if implementation supports parallelism. (default=false)
Definition: common/capabilities.hh:68
Specialize with 'true' if implementation guarantees conforming level grids. (default=false) ...
Definition: common/capabilities.hh:98
Definition: geometrygrid/capabilities.hh:112
Specialize with 'true' for if the codimension 0 entity of the grid has only one possible geometry typ...
Definition: common/capabilities.hh:26
Specialize with 'true' if implementation provides backup and restore facilities. (default=false) ...
Definition: common/capabilities.hh:116
static const bool v
Definition: common/capabilities.hh:28
Specialize with 'true' if implementation guarantees a conforming leaf grid. (default=false) ...
Definition: common/capabilities.hh:107
grid wrapper replacing the geometriesGeometryGrid wraps another DUNE grid and replaces its geometry b...
Definition: geometrygrid/declaration.hh:10
Specialize with 'true' for all codims that a grid implements entities for. (default=false) ...
Definition: common/capabilities.hh:57
static bool hasHostEntity(int codim)
Definition: geometrygrid/capabilities.hh:133
static const bool v
Definition: common/capabilities.hh:59
Grid abstract base classThis class is the base class for all grid implementations. Although no virtual functions are used we call it abstract since its methods do not contain an implementation but forward to the methods of the derived class via the Barton-Nackman trick.
Definition: common/grid.hh:388
Definition: geometrygrid/capabilities.hh:92
static const unsigned int topologyId
Definition: common/capabilities.hh:31
The dimension of the grid.
Definition: common/grid.hh:402
Include standard header files.
Definition: agrid.hh:59
Specialize with 'true' if the grid implementation is thread safe. (default=false) ...
Definition: common/capabilities.hh:135
specialize with 'true' for all codims that a grid can communicate data on (default=false) ...
Definition: common/capabilities.hh:89
A set of traits classes to store static information about grid implementation.