1 #ifndef DUNE_FEM_GRIDPART_LEVELGRIDPART_HH 2 #define DUNE_FEM_GRIDPART_LEVELGRIDPART_HH 4 #include <dune/grid/common/capabilities.hh> 18 template<
class Gr
id >
33 : BaseType( grid.levelGridView( level ) ),
47 GridType &
grid () {
return grid_; }
50 int level ()
const {
return level_; }
61 namespace GridPartCapabilities
64 template<
class Gr
id >
67 static const bool v =
true;
70 template<
class Gr
id >
72 :
public Dune::Capabilities::hasSingleGeometryType< Grid >
75 template<
class Gr
id >
77 :
public Dune::Capabilities::isCartesian< Grid >
80 template<
class Gr
id,
int codim >
82 :
public Dune::Capabilities::hasEntity< Grid, codim >
85 template<
class Gr
id >
87 :
public Dune::Capabilities::isParallel< Grid >
90 template<
class Gr
id,
int codim >
92 :
public Dune::Capabilities::canCommunicate< Grid, codim >
95 template<
class Gr
id >
98 static const bool v = Dune::Capabilities::isLevelwiseConforming< Grid >::v;
107 #endif // #ifndef DUNE_FEM_GRIDPART_LEVELGRIDPART_HH
const GridType & grid() const
Returns const reference to the underlying grid.
Definition: gridview2gridpart.hh:144
Definition: levelgridpart.hh:19
LevelGridPart(GridType &grid, int level)
Definition: levelgridpart.hh:32
specialize with 'true' if implementation supports parallelism (default=false)
Definition: gridpart/common/capabilities.hh:59
GridType & grid()
Returns const reference to the underlying grid.
Definition: levelgridpart.hh:47
specialize with 'true' for all codims that a grid implements entities for (default=false) ...
Definition: gridpart/common/capabilities.hh:49
specialize with 'true' if implementation guarantees conforming level grids. (default=false) ...
Definition: gridpart/common/capabilities.hh:79
specialize with 'false' if grid part has no underlying dune grid (default=true)
Definition: gridpart/common/capabilities.hh:17
BaseType::GridType GridType
type of Grid implementation
Definition: gridview2gridpart.hh:89
specialize with 'true' for all codims that a grid can communicate data on (default=false) ...
Definition: gridpart/common/capabilities.hh:69
Definition: coordinate.hh:4
specialize with 'true' for if the codimension 0 entity of the grid part has only one possible geometr...
Definition: gridpart/common/capabilities.hh:28
specialize with 'true' if the grid part is cartesian (default=false)
Definition: gridpart/common/capabilities.hh:39
int level() const
Level of the grid part.
Definition: levelgridpart.hh:50
BaseType::GridType GridType
type of Grid implementation
Definition: levelgridpart.hh:26
Definition: gridview2gridpart.hh:25