3 #ifndef DUNE_GEOGRID_CAPABILITIES_HH
4 #define DUNE_GEOGRID_CAPABILITIES_HH
8 #include <dune/common/forloop.hh>
19 namespace Capabilities
25 template<
class HostGr
id,
class CoordFunction,
class Allocator >
33 template<
class HostGr
id,
class CoordFunction,
class Allocator,
int codim >
36 static const bool v =
true;
40 template<
class HostGr
id,
class CoordFunction,
class Allocator >
47 template<
class HostGr
id,
class CoordFunction,
class Allocator,
int codim >
54 template<
class HostGr
id,
class CoordFunction,
class Allocator >
60 template<
class HostGr
id,
class CoordFunction,
class Allocator >
66 template<
class HostGr
id,
class CoordFunction,
class Allocator >
72 template<
class HostGr
id,
class CoordFunction,
class Allocator >
75 static const bool v =
false;
78 template<
class HostGr
id,
class CoordFunction,
class Allocator >
81 static const bool v =
false;
90 template<
class Gr
id,
int codim >
93 template<
class Gr
id,
int codim >
94 struct hasHostEntity< const
Grid, codim >
96 static const bool v = hasHostEntity< Grid, codim >::v;
99 template<
class HostGr
id,
class CoordFunction,
class Allocator,
int codim >
100 struct hasHostEntity<
GeometryGrid< HostGrid, CoordFunction, Allocator >, codim >
110 template<
class Gr
id >
115 template<
int codim >
122 Dune::ForLoop< BuildCache, 0, dimension >::apply( hasHostEntity_ );
134 assert( (codim >= 0) && (codim <= dimension) );
135 return instance().hasHostEntity_[ codim ];
139 template<
class Gr
id >
140 template<
int codim >
145 hasHostEntity[ codim ] = Capabilities::hasHostEntity< Grid, codim >::v;
153 #endif // #ifndef DUNE_GEOGRID_CAPABILITIES_HH