dune-grid-dev-howto
2.3.1
|
[ provides Dune::Grid
]
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 More... | |
typedef IdentityGridFamily < HostGrid::dimension, HostGrid >::Traits | Traits |
the Traits More... | |
typedef HostGrid::ctype | ctype |
The type used to store coordinates, inherited from the HostGrid. More... | |
Public Member Functions | |
IdentityGrid (HostGrid &hostgrid) | |
Constructor. More... | |
~IdentityGrid () | |
Desctructor. More... | |
int | maxLevel () const |
template<int codim> | |
Traits::template Codim< codim > ::LevelIterator | lbegin (int level) const |
Iterator to first entity of given codim on level. More... | |
template<int codim> | |
Traits::template Codim< codim > ::LevelIterator | lend (int level) const |
one past the end on this level More... | |
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. More... | |
template<int codim, PartitionIteratorType PiType> | |
Traits::template Codim< codim > ::template Partition< PiType > ::LevelIterator | lend (int level) const |
one past the end on this level More... | |
template<int codim> | |
Traits::template Codim< codim > ::LeafIterator | leafbegin () const |
Iterator to first leaf entity of given codim. More... | |
template<int codim> | |
Traits::template Codim< codim > ::LeafIterator | leafend () const |
one past the end of the sequence of leaf entities More... | |
template<int codim, PartitionIteratorType PiType> | |
Traits::template Codim< codim > ::template Partition< PiType > ::LeafIterator | leafbegin () const |
Iterator to first leaf entity of given codim. More... | |
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 More... | |
int | size (int level, int codim) const |
Number of grid entities per level and codim. More... | |
size_t | numBoundarySegments () const |
returns the number of boundary segments within the macro grid More... | |
int | size (int codim) const |
number of leaf entities per codim in this process More... | |
int | size (int level, GeometryType type) const |
number of entities per level, codim and geometry type in this process More... | |
int | size (GeometryType type) const |
number of leaf entities per codim and geometry type in this process More... | |
const Traits::GlobalIdSet & | globalIdSet () const |
Access to the GlobalIdSet. More... | |
const Traits::LocalIdSet & | localIdSet () const |
Access to the LocalIdSet. More... | |
const Traits::LevelIndexSet & | levelIndexSet (int level) const |
Access to the LevelIndexSets. More... | |
const Traits::LeafIndexSet & | leafIndexSet () const |
Access to the LeafIndexSet. More... | |
template<class EntitySeed > | |
Traits::template Codim < EntitySeed::codimension > ::EntityPointer | entityPointer (const EntitySeed &seed) const |
Create EntityPointer from EntitySeed. More... | |
unsigned int | overlapSize (int codim) const |
Size of the overlap on the leaf level. More... | |
unsigned int | ghostSize (int codim) const |
Size of the ghost cell layer on the leaf level. More... | |
unsigned int | overlapSize (int level, int codim) const |
Size of the overlap on a given level. More... | |
unsigned int | ghostSize (int level, int codim) const |
Size of the ghost cell layer on a given level. More... | |
const CollectiveCommunication < IdentityGrid > & | comm () const |
HostGridType & | getHostGrid () const |
Returns the hostgrid this IdentityGrid lives in. More... | |
template<int codim> | |
HostGrid::Traits::template Codim< codim >::EntityPointer | getHostEntityPointer (const typename Traits::template Codim< codim >::Entity &e) const |
Returns the hostgrid entity encapsulated in given IdentityGrid entity. More... | |
Grid Refinement Methods | |
void | globalRefine (int refCount) |
bool | mark (int refCount, const typename Traits::template Codim< 0 >::EntityPointer &e) |
Mark entity for refinement. More... | |
int | getMark (const typename Traits::template Codim< 0 >::EntityPointer &e) const |
Return refinement mark for entity. More... | |
bool | preAdapt () |
bool | adapt () |
Triggers the grid refinement process. More... | |
void | postAdapt () |
Clean up refinement markers. More... | |
Protected Attributes | |
HostGrid * | hostgrid_ |
The host grid which contains the actual grid hierarchy structure. More... | |
Friends | |
class | IdentityGridLevelIndexSet< const IdentityGrid< HostGrid > > |
class | IdentityGridLeafIndexSet< const IdentityGrid< HostGrid > > |
class | IdentityGridGlobalIdSet< const IdentityGrid< HostGrid > > |
class | IdentityGridLocalIdSet< const IdentityGrid< HostGrid > > |
class | IdentityGridHierarchicIterator< const IdentityGrid< HostGrid > > |
class | IdentityGridLevelIntersectionIterator< const IdentityGrid< HostGrid > > |
class | IdentityGridLeafIntersectionIterator< const IdentityGrid< HostGrid > > |
template<int codim, PartitionIteratorType pitype, class GridImp_ > | |
class | IdentityGridLevelIterator |
template<int codim, PartitionIteratorType pitype, class GridImp_ > | |
class | IdentityGridLeafIterator |
template<int codim_, int dim_, class GridImp_ > | |
class | IdentityGridEntity |
struct | HostGridAccess< IdentityGrid< HostGrid > > |
[ provides Dune::Grid
]
typedef HostGrid::ctype Dune::IdentityGrid< HostGrid >::ctype |
The type used to store coordinates, inherited from the HostGrid.
typedef IdentityGridFamily<HostGrid::dimension,HostGrid> Dune::IdentityGrid< HostGrid >::GridFamily |
type of the used GridFamily for this grid
typedef HostGrid Dune::IdentityGrid< HostGrid >::HostGridType |
typedef IdentityGridFamily<HostGrid::dimension,HostGrid>::Traits Dune::IdentityGrid< HostGrid >::Traits |
the Traits
|
inlineexplicit |
Constructor.
|
inline |
Desctructor.
|
inline |
Triggers the grid refinement process.
References Dune::IdentityGrid< HostGrid >::hostgrid_.
|
inline |
dummy collective communication
|
inline |
Create EntityPointer from EntitySeed.
References Dune::IdentityGrid< HostGrid >::hostgrid_.
|
inline |
Returns the hostgrid entity encapsulated in given IdentityGrid entity.
|
inline |
Returns the hostgrid this IdentityGrid lives in.
References Dune::IdentityGrid< HostGrid >::hostgrid_.
|
inline |
Return refinement mark for entity.
References Dune::IdentityGrid< HostGrid >::hostgrid_.
|
inline |
Size of the ghost cell layer on the leaf level.
References Dune::IdentityGrid< HostGrid >::hostgrid_.
|
inline |
Size of the ghost cell layer on a given level.
References Dune::IdentityGrid< HostGrid >::hostgrid_.
|
inline |
Access to the GlobalIdSet.
|
inline |
global refinement
References Dune::IdentityGrid< HostGrid >::hostgrid_.
|
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
|
inline |
Access to the LeafIndexSet.
Referenced by Dune::IdentityGrid< HostGrid >::size().
|
inline |
one past the end on this level
|
inline |
one past the end on this level
|
inline |
Access to the LevelIndexSets.
References Dune::IdentityGrid< HostGrid >::maxLevel().
|
inline |
Access to the LocalIdSet.
|
inline |
Mark entity for refinement.
This only works for entities of codim 0. The parameter is currently ignored
References Dune::IdentityGrid< HostGrid >::hostgrid_.
|
inline |
Return maximum level defined in this grid. Levels are numbered 0 ... maxlevel with 0 the coarsest level.
References Dune::IdentityGrid< HostGrid >::hostgrid_.
Referenced by Dune::IdentityGrid< HostGrid >::levelIndexSet().
|
inline |
returns the number of boundary segments within the macro grid
References Dune::IdentityGrid< HostGrid >::hostgrid_.
|
inline |
Size of the overlap on the leaf level.
References Dune::IdentityGrid< HostGrid >::hostgrid_.
|
inline |
Size of the overlap on a given level.
References Dune::IdentityGrid< HostGrid >::hostgrid_.
|
inline |
Clean up refinement markers.
References Dune::IdentityGrid< HostGrid >::hostgrid_.
|
inline |
References Dune::IdentityGrid< HostGrid >::hostgrid_.
|
inline |
Number of grid entities per level and codim.
References Dune::IdentityGrid< HostGrid >::hostgrid_.
|
inline |
number of leaf entities per codim in this process
References Dune::IdentityGrid< HostGrid >::leafIndexSet().
|
inline |
number of entities per level, codim and geometry type in this process
|
inline |
number of leaf entities per codim and geometry type in this process
References Dune::IdentityGrid< HostGrid >::leafIndexSet().
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
protected |
The host grid which contains the actual grid hierarchy structure.
Referenced by Dune::IdentityGrid< HostGrid >::adapt(), Dune::IdentityGrid< HostGrid >::entityPointer(), Dune::IdentityGrid< HostGrid >::getHostGrid(), Dune::IdentityGrid< HostGrid >::getMark(), Dune::IdentityGrid< HostGrid >::ghostSize(), Dune::IdentityGrid< HostGrid >::globalRefine(), Dune::IdentityGrid< HostGrid >::mark(), Dune::IdentityGrid< HostGrid >::maxLevel(), Dune::IdentityGrid< HostGrid >::numBoundarySegments(), Dune::IdentityGrid< HostGrid >::overlapSize(), Dune::IdentityGrid< HostGrid >::postAdapt(), Dune::IdentityGrid< HostGrid >::preAdapt(), and Dune::IdentityGrid< HostGrid >::size().