dune-grid 2.10
|
Provides a meta grid that is identical to its host. More...
#include <dune/grid/identitygrid.hh>
Public Types | |
typedef HostGrid | HostGridType |
typedef IdentityGridFamily< HostGrid::dimension, HostGrid > | GridFamily |
type of the used GridFamily for this grid | |
typedef IdentityGridFamily< HostGrid::dimension, HostGrid >::Traits | Traits |
the Traits | |
typedef HostGrid::ctype | ctype |
The type used to store coordinates, inherited from the HostGrid. | |
Exported types | |
typedef GridFamily::Traits::LeafGridView | LeafGridView |
type of view for leaf grid | |
typedef GridFamily::Traits::LevelGridView | LevelGridView |
type of view for level grid | |
typedef GridFamily::Traits::LeafIntersection | LeafIntersection |
A type that is a model of Dune::Intersection, an intersections of two codimension 1 of two codimension 0 entities in the leaf view. | |
typedef GridFamily::Traits::LevelIntersection | LevelIntersection |
A type that is a model of Dune::Intersection, an intersections of two codimension 1 of two codimension 0 entities in a level view. | |
typedef GridFamily::Traits::LeafIntersectionIterator | LeafIntersectionIterator |
A type that is a model of Dune::IntersectionIterator which is an iterator that allows to examine, but not to modify, the intersections of codimension 1 of an leaf element (entity of codimension 0) with other leaf elements. | |
typedef GridFamily::Traits::LevelIntersectionIterator | LevelIntersectionIterator |
A type that is a model of Dune::IntersectionIterator which is an iterator that allows to examine, but not to modify, the intersections of codimension 1 of an element (entity of codimension 0) with other elements on the same level. | |
typedef GridFamily::Traits::HierarchicIterator | HierarchicIterator |
A type that is a model of Dune::HierarchicIterator A type of iterator that allows to examine, but not to modify, entities of codimension 0 that result from refinement of an entity of codimension 0. | |
typedef GridFamily::Traits::LevelIndexSet | LevelIndexSet |
A type that is a model of Dune::IndexSet which provides a consecutive, but non persistent, numbering for entities on a grid level. | |
typedef GridFamily::Traits::LeafIndexSet | LeafIndexSet |
A type that is a model of Dune::IndexSet which provides a consecutive, but non persistent, numbering for entities in the leaf grid. | |
typedef GridFamily::Traits::GlobalIdSet | GlobalIdSet |
A type that is a model of Dune::IdSet which provides a unique and persistent numbering for all entities in the grid. The numbering is unique over all processes over which the grid is partitioned. The numbering is not necessarily consecutive. | |
typedef GridFamily::Traits::LocalIdSet | LocalIdSet |
A type that is a model of Dune::IdSet which provides a unique and persistent numbering for all entities in the grid. The numbering is only unique in a single process and it is not necessarily consecutive. | |
using | Communication = typename GridFamily::Traits::Communication |
A type that is a model of Dune::Communication. It provides a portable way for communication on the set of processes used by the grid. | |
Public Member Functions | |
IdentityGrid (HostGrid &hostgrid) | |
Constructor. | |
~IdentityGrid () | |
Destructor. | |
int | maxLevel () const |
Return maximum level defined in this grid. | |
template<int codim> | |
Traits::template Codim< codim >::LevelIterator | lbegin (int level) const |
Iterator to first entity of given codim on level. | |
template<int codim> | |
Traits::template Codim< codim >::LevelIterator | lend (int level) const |
one past the end on this level | |
template<int codim, PartitionIteratorType PiType> | |
Traits::template Codim< codim >::template Partition< PiType >::LevelIterator | lbegin (int level) const |
Iterator to first entity of given codim on level. | |
template<int codim, PartitionIteratorType PiType> | |
Traits::template Codim< codim >::template Partition< PiType >::LevelIterator | lend (int level) const |
one past the end on this level | |
template<int codim> | |
Traits::template Codim< codim >::LeafIterator | leafbegin () const |
Iterator to first leaf entity of given codim. | |
template<int codim> | |
Traits::template Codim< codim >::LeafIterator | leafend () const |
one past the end of the sequence of leaf entities | |
template<int codim, PartitionIteratorType PiType> | |
Traits::template Codim< codim >::template Partition< PiType >::LeafIterator | leafbegin () const |
Iterator to first leaf entity of given codim. | |
template<int codim, PartitionIteratorType PiType> | |
Traits::template Codim< codim >::template Partition< PiType >::LeafIterator | leafend () const |
one past the end of the sequence of leaf entities | |
int | size (int level, int codim) const |
Number of grid entities per level and codim. | |
size_t | numBoundarySegments () const |
returns the number of boundary segments within the macro grid | |
int | size (int codim) const |
number of leaf entities per codim in this process | |
int | size (int level, GeometryType type) const |
number of entities per level, codim and geometry type in this process | |
int | size (GeometryType type) const |
number of leaf entities per codim and geometry type in this process | |
const Traits::GlobalIdSet & | globalIdSet () const |
Access to the GlobalIdSet. | |
const Traits::LocalIdSet & | localIdSet () const |
Access to the LocalIdSet. | |
const Traits::LevelIndexSet & | levelIndexSet (int level) const |
Access to the LevelIndexSets. | |
const Traits::LeafIndexSet & | leafIndexSet () const |
Access to the LeafIndexSet. | |
template<class EntitySeed > | |
Traits::template Codim< EntitySeed::codimension >::Entity | entity (const EntitySeed &seed) const |
Create Entity from EntitySeed. | |
Traits::LevelGridView | levelGridView (int level) const |
View for a grid level for All_Partition. | |
Traits::LeafGridView | leafGridView () const |
View for the leaf grid for All_Partition. | |
Traits::LeafIntersectionIterator | ileafbegin (const typename Traits::template Codim< 0 >::Entity &entity) const |
obtain begin intersection iterator on the leaf level | |
Traits::LeafIntersectionIterator | ileafend (const typename Traits::template Codim< 0 >::Entity &entity) const |
obtain end intersection iterator on the leaf level | |
Traits::LevelIntersectionIterator | ilevelbegin (const typename Traits::template Codim< 0 >::Entity &entity) const |
obtain begin intersection iterator on the entity level | |
Traits::LevelIntersectionIterator | ilevelend (const typename Traits::template Codim< 0 >::Entity &entity) const |
obtain end intersection iterator on the entity level | |
bool | mark (int refCount, const typename Traits ::template Codim< 0 >::Entity &e) |
Marks an entity to be refined/coarsened in a subsequent adapt. | |
bool | loadBalance () |
default implementation of load balance does nothing and returns false | |
bool | loadBalance (DataHandle &data) |
default implementation of load balance does nothing and returns false | |
Adaptivity and grid refinement | |
bool | mark (int refCount, const typename Codim< 0 >::Entity &e) |
Marks an entity to be refined/coarsened in a subsequent adapt. | |
int | getMark (const typename Codim< 0 >::Entity &e) const |
returns adaptation mark for given entity | |
Static Public Attributes | |
Exported constants | |
static constexpr int | dimension = dim |
The dimension of the grid. | |
static constexpr int | dimensionworld = dimworld |
The dimension of the world the grid lives in. | |
Protected Member Functions | |
Parallel data distribution and communication | |
GridImp & | asImp () |
Barton-Nackman trick. | |
const GridImp & | asImp () const |
Barton-Nackman trick. | |
Grid Refinement Methods | |
HostGrid * | hostgrid_ |
The host grid which contains the actual grid hierarchy structure. | |
void | globalRefine (int refCount) |
bool | mark (int refCount, const typename Traits::template Codim< 0 >::Entity &e) |
Mark entity for refinement. | |
int | getMark (const typename Traits::template Codim< 0 >::Entity &e) const |
Return refinement mark for entity. | |
bool | preAdapt () |
returns true, if at least one entity is marked for adaption | |
bool | adapt () |
Triggers the grid refinement process. | |
void | postAdapt () |
Clean up refinement markers. | |
unsigned int | overlapSize (int codim) const |
Size of the overlap on the leaf level. | |
unsigned int | ghostSize (int codim) const |
Size of the ghost cell layer on the leaf level. | |
unsigned int | overlapSize (int level, int codim) const |
Size of the overlap on a given level. | |
unsigned int | ghostSize (int level, int codim) const |
Size of the ghost cell layer on a given level. | |
const Communication< No_Comm > & | comm () const |
dummy communication | |
template<class DataHandle > | |
void | communicate (DataHandle &handle, InterfaceType iftype, CommunicationDirection dir, int level) const |
Communicate data of level gridView. | |
template<class DataHandle > | |
void | communicate (DataHandle &handle, InterfaceType iftype, CommunicationDirection dir) const |
Communicate data of leaf gridView. | |
HostGridType & | getHostGrid () const |
Returns the hostgrid this IdentityGrid lives in. | |
template<int codim> | |
const HostGrid::Traits::template Codim< codim >::Entity & | getHostEntity (const typename Traits::template Codim< codim >::Entity &e) const |
Returns the hostgrid entity encapsulated in given IdentityGrid entity. | |
Provides a meta grid that is identical to its host.
HostGrid | The host grid type wrapped by the IdentityGrid |
|
inherited |
A type that is a model of Dune::Communication. It provides a portable way for communication on the set of processes used by the grid.
HostGrid::ctype Dune::IdentityGrid< class >::ctype |
The type used to store coordinates, inherited from the HostGrid.
|
inherited |
A type that is a model of Dune::IdSet which provides a unique and persistent numbering for all entities in the grid. The numbering is unique over all processes over which the grid is partitioned. The numbering is not necessarily consecutive.
IdentityGridFamily<HostGrid::dimension,HostGrid> Dune::IdentityGrid< class >::GridFamily |
type of the used GridFamily for this grid
|
inherited |
A type that is a model of Dune::HierarchicIterator A type of iterator that allows to examine, but not to modify, entities of codimension 0 that result from refinement of an entity of codimension 0.
HostGrid Dune::IdentityGrid< class >::HostGridType |
|
inherited |
type of view for leaf grid
|
inherited |
A type that is a model of Dune::IndexSet which provides a consecutive, but non persistent, numbering for entities in the leaf grid.
|
inherited |
A type that is a model of Dune::Intersection, an intersections of two codimension 1 of two codimension 0 entities in the leaf view.
|
inherited |
A type that is a model of Dune::IntersectionIterator which is an iterator that allows to examine, but not to modify, the intersections of codimension 1 of an leaf element (entity of codimension 0) with other leaf elements.
|
inherited |
type of view for level grid
|
inherited |
A type that is a model of Dune::IndexSet which provides a consecutive, but non persistent, numbering for entities on a grid level.
|
inherited |
A type that is a model of Dune::Intersection, an intersections of two codimension 1 of two codimension 0 entities in a level view.
|
inherited |
A type that is a model of Dune::IntersectionIterator which is an iterator that allows to examine, but not to modify, the intersections of codimension 1 of an element (entity of codimension 0) with other elements on the same level.
|
inherited |
A type that is a model of Dune::IdSet which provides a unique and persistent numbering for all entities in the grid. The numbering is only unique in a single process and it is not necessarily consecutive.
IdentityGridFamily<HostGrid::dimension,HostGrid>::Traits Dune::IdentityGrid< class >::Traits |
the Traits
|
inlineexplicit |
Constructor.
hostgrid | The host grid wrapped by the IdentityGrid |
|
inline |
Destructor.
|
inline |
Triggers the grid refinement process.
|
inlineprotectedinherited |
Barton-Nackman trick.
|
inlineprotectedinherited |
Barton-Nackman trick.
|
inline |
dummy communication
|
inline |
Communicate data of leaf gridView.
|
inline |
Communicate data of level gridView.
|
inline |
Create Entity from EntitySeed.
|
inline |
Returns the hostgrid entity encapsulated in given IdentityGrid entity.
|
inline |
Returns the hostgrid this IdentityGrid lives in.
|
inlineinherited |
|
inline |
Return refinement mark for entity.
|
inline |
Size of the ghost cell layer on the leaf level.
|
inline |
Size of the ghost cell layer on a given level.
|
inline |
Access to the GlobalIdSet.
|
inline |
global refinement
|
inlineinherited |
obtain begin intersection iterator on the leaf level
|
inlineinherited |
obtain end intersection iterator on the leaf level
|
inlineinherited |
obtain begin intersection iterator on the entity level
|
inlineinherited |
obtain end intersection iterator on the entity level
|
inline |
Iterator to first entity of given codim on level.
|
inline |
Iterator to first entity of given codim on level.
|
inline |
Iterator to first leaf entity of given codim.
|
inline |
Iterator to first leaf entity of given codim.
|
inline |
one past the end of the sequence of leaf entities
|
inline |
one past the end of the sequence of leaf entities
|
inlineinherited |
View for the leaf grid for All_Partition.
|
inline |
Access to the LeafIndexSet.
|
inline |
one past the end on this level
|
inline |
one past the end on this level
|
inlineinherited |
View for a grid level for All_Partition.
|
inline |
Access to the LevelIndexSets.
|
inlineinherited |
default implementation of load balance does nothing and returns false
|
inlineinherited |
default implementation of load balance does nothing and returns false
|
inline |
Access to the LocalIdSet.
|
inlineinherited |
|
inlineinherited |
Marks an entity to be refined/coarsened in a subsequent adapt.
[in] | refCount | Number of subdivisions that should be applied. Negative value means coarsening. |
[in] | e | Entity to Entity that should be refined |
|
inline |
Mark entity for refinement.
This only works for entities of codim 0. The parameter is currently ignored
|
inline |
Return maximum level defined in this grid.
Levels are numbered 0 ... maxlevel with 0 the coarsest level.
|
inline |
returns the number of boundary segments within the macro grid
|
inline |
Size of the overlap on the leaf level.
|
inline |
Size of the overlap on a given level.
|
inline |
Clean up refinement markers.
|
inline |
returns true, if at least one entity is marked for adaption
|
inline |
number of leaf entities per codim and geometry type in this process
|
inline |
number of leaf entities per codim in this process
|
inline |
number of entities per level, codim and geometry type in this process
|
inline |
Number of grid entities per level and codim.
|
staticconstexprinherited |
The dimension of the grid.
|
staticconstexprinherited |
The dimension of the world the grid lives in.
|
protected |
The host grid which contains the actual grid hierarchy structure.