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>
8 #if DUNE_VERSION_NEWER(DUNE_GEOMETRY,2,5)
9 #include <dune/geometry/type.hh>
11 #include <dune/geometry/genericgeometry/topologytypes.hh>
22 #if ! DUNE_VERSION_NEWER(DUNE_GEOMETRY,2,5)
25 using Dune :: GenericGeometry :: SimplexTopology ;
26 using Dune :: GenericGeometry :: CubeTopology ;
30 namespace Capabilities
39 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
class Comm >
40 struct hasSingleGeometryType<
ALUGrid< dim, dimworld, eltype, refinementtype, Comm > >
42 static const bool v =
true;
43 static const unsigned int topologyId = (eltype ==
cube) ?
44 Impl :: CubeTopology< dim > :: type :: id :
45 Impl :: SimplexTopology< dim > :: type :: id ;
51 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
class Comm,
int cdim >
52 struct hasEntity<
ALUGrid< dim, dimworld, eltype, refinementtype, Comm >, cdim >
54 static const bool v =
true;
57 #if !DUNE_VERSION_NEWER(DUNE_GRID,2,5)
61 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype >
64 static const bool v =
false;
70 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype >
73 static const bool v =
true;
80 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
int codim >
83 static const bool v =
false;
89 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
int codim >
92 static const bool v =
true;
98 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
class Comm >
99 struct isLevelwiseConforming<
ALUGrid< dim, dimworld, eltype, refinementtype, Comm > >
107 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
class Comm >
108 struct isLeafwiseConforming<
ALUGrid< dim, dimworld, eltype, refinementtype, Comm > >
116 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
class Comm >
117 struct hasBackupRestoreFacilities<
ALUGrid< dim, dimworld, eltype, refinementtype, Comm > >
119 static const bool v =
true;
Definition: alu3dinclude.hh:50
Definition: alu3dinclude.hh:80
@ cube
use only cube elements (i.e., quadrilaterals or hexahedra)
Definition: declaration.hh:19
@ nonconforming
use non-conforming (red) refinement
Definition: declaration.hh:26
@ conforming
use conforming bisection refinement
Definition: declaration.hh:25
type of class for specialization of serial ALUGrid (No_Comm as communicator)
Definition: declaration.hh:31
type of class for specialization of parallel ALUGrid (MPI_Comm as communicator)
Definition: declaration.hh:39