1 #ifndef DUNE_ALUGRID_CAPABILITIES_HH
2 #define DUNE_ALUGRID_CAPABILITIES_HH
10 #include <dune/geometry/genericgeometry/topologytypes.hh>
20 namespace Capabilities
29 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
class Comm >
30 struct hasSingleGeometryType< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > >
32 static const bool v =
true;
34 GenericGeometry :: CubeTopology< dim > :: type :: id :
35 GenericGeometry :: SimplexTopology< dim > :: type :: id ;
41 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
class Comm,
int cdim >
42 struct hasEntity< ALUGrid< dim, dimworld, eltype, refinementtype, Comm >, cdim >
44 static const bool v =
true;
50 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype >
51 struct isParallel< ALUGrid< dim, dimworld, eltype, refinementtype, No_Comm > >
53 static const bool v =
false;
59 #if ALU3DGRID_PARALLEL
60 template< ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype >
61 struct isParallel< ALUGrid< 3, 3, eltype, refinementtype, MPI_Comm > >
63 static const bool v =
true;
70 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
int codim >
71 struct canCommunicate< ALUGrid< dim, dimworld, eltype, refinementtype, No_Comm >, codim >
73 static const bool v =
false;
79 #if ALU3DGRID_PARALLEL
80 template< ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
int codim >
81 struct canCommunicate< ALUGrid< 3, 3, eltype, refinementtype, MPI_Comm >, codim >
83 static const bool v =
true;
90 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
class Comm >
91 struct isLevelwiseConforming< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > >
99 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
class Comm >
100 struct isLeafwiseConforming< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > >
102 static const bool v = refinementtype ==
conforming ;
108 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
class Comm >
109 struct hasBackupRestoreFacilities< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > >
111 static const bool v =
true;
118 #endif // #if HAVE_ALUGRID
120 #endif // #ifdef DUNE_ALUGRID_CAPABILITIES_HH