3#ifndef DUNE_ALUGRID_CAPABILITIES_HH
4#define DUNE_ALUGRID_CAPABILITIES_HH
10#include <dune/grid/alugrid/common/declaration.hh>
11#include <dune/grid/alugrid/common/checkparallel.hh>
12#include <dune/geometry/genericgeometry/topologytypes.hh>
22 namespace Capabilities
31 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
class Comm >
32 struct hasSingleGeometryType< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > >
34 static const bool v =
true;
35 static const unsigned int topologyId = (eltype == cube) ?
36 GenericGeometry :: CubeTopology< dim > :: type :: id :
37 GenericGeometry :: SimplexTopology< dim > :: type :: id ;
43 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
class Comm,
int cdim >
44 struct hasEntity< ALUGrid< dim, dimworld, eltype, refinementtype, Comm >, cdim >
46 static const bool v =
true;
52 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype >
53 struct isParallel< ALUGrid< dim, dimworld, eltype, refinementtype, No_Comm > >
55 static const bool v =
false;
62 template< ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype >
63 struct isParallel< ALUGrid< 3, 3, eltype, refinementtype, MPI_Comm > >
65 static const bool v =
true;
72 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
int codim >
73 struct canCommunicate< ALUGrid< dim, dimworld, eltype, refinementtype, No_Comm >, codim >
75 static const bool v =
false;
82 template< ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
int codim >
83 struct canCommunicate< ALUGrid< 3, 3, eltype, refinementtype, MPI_Comm >, codim >
85 static const bool v =
true;
92 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
class Comm >
93 struct isLevelwiseConforming< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > >
95 static const bool v = refinementtype == nonconforming;
101 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
class Comm >
102 struct isLeafwiseConforming< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > >
104 static const bool v = refinementtype == conforming ;
110 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
class Comm >
111 struct hasBackupRestoreFacilities< ALUGrid< dim, dimworld, eltype, refinementtype, Comm > >
113 static const bool v =
true;
A set of traits classes to store static information about grid implementation.
Dune namespace.
Definition: alignment.hh:14