1#ifndef DUNE_FEM_CAPABILITIES_HH
2#define DUNE_FEM_CAPABILITIES_HH
6#include <dune/grid/common/capabilities.hh>
9#include <dune/fem/misc/metaprogramming.hh>
17 namespace Capabilities
23 template<
class Gr
id >
24 struct hasHierarchicIndexSet;
26 template<
class Gr
id >
29 static const bool v =
false;
32 template<
class Gr
id >
35 static const bool v =
false;
39 template<
int dim,
int dimw, ALUGr
idElementType elType, ALUGr
idRefinementType refineType,
class Comm >
40 struct hasHierarchicIndexSet< ALUGrid<
dim, dimw, elType, refineType, Comm > >
42 static const bool v =
true;
46#if HAVE_DUNE_P4ESTGRID
47 template<
int dim,
int dimworld, P4estType elType,
class ctype >
48 struct hasHierarchicIndexSet< P4estGrid<
dim, dimworld, elType, ctype > >
50 static const bool v =
true;
57 static const bool v =
false;
63 static const bool v =
false;
66 template<
int dim,
class CoordCont >
69 static const bool v =
false;
73 template<
class HostGr
id,
class CoordFunction,
class Allocator >
77 static const bool v = false ;
89 namespace Capabilities
95 template<
class Gr
id >
98 template<
unsigned int codim >
104 static const bool v = Loop< MetaAnd, Codim, Grid :: dimension >
:: v;
112 template<
class Gr
id >
115 static const bool v =
false;
118 template<
class Gr
id >
125 template<
int dim,
int dimworld, ALUGr
idElementType elType, ALUGr
idRefinementType refineType,
class Comm >
128 static const bool v =
true;
132#if HAVE_DUNE_P4ESTGRID
133 template<
int dim,
int dimworld, P4estType elType,
class ctype >
134 struct supportsCallbackAdaptation< P4estGrid<
dim, dimworld, elType, ctype > >
136 static const bool v =
true;
140#if HAVE_DUNE_PERIODIC
142 struct supportsCallbackAdaptation<
Dune::Periodic::FlatPeriodicGrid<HG> >
144 using G = Dune::Periodic::FlatPeriodicGrid<HG>;
145 static const bool v = supportsCallbackAdaptation<typename G::HostEmbeddedGrid>
:: v;
149 template<
int dim,
int dimworld >
152 static const bool v =
true;
155 template<
class HostGr
id,
class CoordFunction,
class Allocator >
161#if HAVE_DUNE_METAGRID
162 template<
class HostGr
id >
174 template<
class Gr
id >
177 static const bool v =
false;
180 template<
class Gr
id >
187 template<
int dim,
int dimworld, ALUGr
idElementType elType, ALUGr
idRefinementType refineType,
class Comm >
190 static const bool v =
true;
194#if HAVE_DUNE_P4ESTGRID
195 template<
int dim,
int dimworld, P4estType elType,
class ctype >
196 struct isLocallyAdaptive< P4estGrid<
dim, dimworld, elType, ctype > >
198 static const bool v =
true;
202#if HAVE_DUNE_PERIODIC
204 struct isLocallyAdaptive<
Dune::Periodic::FlatPeriodicGrid<HG> >
206 using G = Dune::Periodic::FlatPeriodicGrid<HG>;
207 static const bool v = isLocallyAdaptive<typename G::HostEmbeddedGrid>
:: v;
211 template<
int dim,
int dimworld >
214 static const bool v =
true;
220 static const bool v =
true;
226 static const bool v =
true;
229 template<
class HostGr
id,
class CoordFunction,
class Allocator >
235#if HAVE_DUNE_METAGRID
236 template<
class HostGr
id >
248 template<
class Gr
id >
251 static const bool v =
false;
Definition misc/capabilities.hh:97
static const bool v
Definition misc/capabilities.hh:104
static const bool value
Definition misc/capabilities.hh:105
Definition misc/capabilities.hh:114
static const bool v
Definition misc/capabilities.hh:115
Definition misc/capabilities.hh:176
static const bool v
Definition misc/capabilities.hh:177
Definition misc/capabilities.hh:250
static const bool v
Definition misc/capabilities.hh:251