1 #ifndef DUNE_ALUGRID_CAPABILITIES_HH
2 #define DUNE_ALUGRID_CAPABILITIES_HH
4 #include <dune/common/version.hh>
5 #include <dune/grid/common/capabilities.hh>
7 #include <dune/geometry/genericgeometry/topologytypes.hh>
17 namespace Capabilities
26 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
class Comm >
27 struct hasSingleGeometryType<
ALUGrid< dim, dimworld, eltype, refinementtype, Comm > >
29 static const bool v =
true;
30 static const unsigned int topologyId = (eltype ==
cube) ?
31 GenericGeometry :: CubeTopology< dim > :: type :: id :
32 GenericGeometry :: SimplexTopology< dim > :: type :: id ;
38 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
class Comm,
int cdim >
39 struct hasEntity<
ALUGrid< dim, dimworld, eltype, refinementtype, Comm >, cdim >
41 static const bool v =
true;
44 #if !DUNE_VERSION_NEWER(DUNE_GRID,3,0)
48 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype >
51 static const bool v =
false;
57 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype >
60 static const bool v =
true;
62 #endif //#if !DUNE_VERSION_NEWER(DUNE_GRID,3,0)
67 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
int codim >
70 static const bool v =
false;
76 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
int codim >
79 static const bool v =
true;
85 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
class Comm >
86 struct isLevelwiseConforming<
ALUGrid< dim, dimworld, eltype, refinementtype, Comm > >
94 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
class Comm >
95 struct isLeafwiseConforming<
ALUGrid< dim, dimworld, eltype, refinementtype, Comm > >
103 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
class Comm >
104 struct hasBackupRestoreFacilities<
ALUGrid< dim, dimworld, eltype, refinementtype, Comm > >
106 static const bool v =
true;
113 #endif // #ifdef DUNE_ALUGRID_CAPABILITIES_HH