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;
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;
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