|
dune-grid 2.11
|
Loading...
Searching...
No Matches
identitygrid.hh
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root
167 return IdentityGridLevelIterator<codim,All_Partition, const IdentityGrid<HostGrid> >(this, level);
174 return IdentityGridLevelIterator<codim,All_Partition, const IdentityGrid<HostGrid> >(this, level, true);
180 typename Traits::template Codim<codim>::template Partition<PiType>::LevelIterator lbegin (int level) const {
187 typename Traits::template Codim<codim>::template Partition<PiType>::LevelIterator lend (int level) const {
188 return IdentityGridLevelIterator<codim,PiType, const IdentityGrid<HostGrid> >(this, level, true);
202 return IdentityGridLeafIterator<codim,All_Partition, const IdentityGrid<HostGrid> >(this, true);
208 typename Traits::template Codim<codim>::template Partition<PiType>::LeafIterator leafbegin() const {
215 typename Traits::template Codim<codim>::template Partition<PiType>::LeafIterator leafend() const {
423 const typename HostGrid::Traits::template Codim<codim>::Entity& getHostEntity(const typename Traits::template Codim<codim>::Entity& e) const
size_type dim() const
#define DUNE_THROW(E,...)
The IdentityGridEntitySeed class.
The IdentityGridEntity class.
The IdentityGridLevelIterator class.
The index and id sets for the IdentityGrid class.
The IdentityGridGeometry class and its specializations.
The IdentityGridLeafIntersectionIterator and IdentityGridLevelIntersectionIterator classes.
The IdentityGridLeafIterator class.
The IdentityGridHierarchicIterator class.
CommunicationDirection
Define a type for communication direction parameter.
Definition gridenums.hh:170
InterfaceType
Parameter to be used for the communication functions.
Definition gridenums.hh:86
Include standard header files.
static const bool v
Definition common/capabilities.hh:107
Definition defaultgridview.hh:26
Definition defaultgridview.hh:211
Store a reference to an entity with a minimal memory footprint.
Definition common/entityseed.hh:26
Implementation & impl()
access to the underlying implementation
Definition common/entityseed.hh:59
static constexpr int codimension
codimension of underlying entity
Definition common/entityseed.hh:30
Definition common/grid.hh:848
bool loadBalance()
default implementation of load balance does nothing and returns false
Definition common/grid.hh:962
auto size(GeometryType type) const
Return total number of entities of given geometry type in entity set .
Definition common/indexidset.hh:223
A Traits struct that collects all associated types of one implementation.
Definition common/grid.hh:411
A traits struct that collects all associated types of one grid model.
Definition common/grid.hh:1013
bool mark(int refCount, const typename Traits::template Codim< 0 >::Entity &e)
Mark entity for refinement.
Definition identitygrid.hh:318
Traits::template Codim< codim >::LeafIterator leafbegin() const
Iterator to first leaf entity of given codim.
Definition identitygrid.hh:194
const Traits::LevelIndexSet & levelIndexSet(int level) const
Access to the LevelIndexSets.
Definition identitygrid.hh:264
IdentityGridFamily< HostGrid::dimension, HostGrid >::Traits Traits
the Traits
Definition identitygrid.hh:127
const Traits::LeafIndexSet & leafIndexSet() const
Access to the LeafIndexSet.
Definition identitygrid.hh:275
int size(int level, int codim) const
Number of grid entities per level and codim.
Definition identitygrid.hh:222
int size(int level, GeometryType type) const
number of entities per level, codim and geometry type in this process
Definition identitygrid.hh:239
HostGridType & getHostGrid() const
Returns the hostgrid this IdentityGrid lives in.
Definition identitygrid.hh:415
unsigned int ghostSize(int level, int codim) const
Size of the ghost cell layer on a given level.
Definition identitygrid.hh:370
void postAdapt()
Clean up refinement markers.
Definition identitygrid.hh:345
bool adapt()
Triggers the grid refinement process.
Definition identitygrid.hh:339
HostGrid * hostgrid_
The host grid which contains the actual grid hierarchy structure.
Definition identitygrid.hh:431
const Traits::GlobalIdSet & globalIdSet() const
Access to the GlobalIdSet.
Definition identitygrid.hh:252
int size(int codim) const
number of leaf entities per codim in this process
Definition identitygrid.hh:233
Traits::template Codim< codim >::LeafIterator leafend() const
one past the end of the sequence of leaf entities
Definition identitygrid.hh:201
Traits::template Codim< codim >::template Partition< PiType >::LevelIterator lend(int level) const
one past the end on this level
Definition identitygrid.hh:187
int size(GeometryType type) const
number of leaf entities per codim and geometry type in this process
Definition identitygrid.hh:245
int maxLevel() const
Return maximum level defined in this grid.
Definition identitygrid.hh:160
Traits::template Codim< codim >::template Partition< PiType >::LevelIterator lbegin(int level) const
Iterator to first entity of given codim on level.
Definition identitygrid.hh:180
HostGrid::ctype ctype
The type used to store coordinates, inherited from the HostGrid.
Definition identitygrid.hh:130
void communicate(DataHandle &handle, InterfaceType iftype, CommunicationDirection dir, int level) const
Communicate data of level gridView.
Definition identitygrid.hh:395
Traits::template Codim< codim >::LevelIterator lend(int level) const
one past the end on this level
Definition identitygrid.hh:173
size_t numBoundarySegments() const
returns the number of boundary segments within the macro grid
Definition identitygrid.hh:228
const Traits::LocalIdSet & localIdSet() const
Access to the LocalIdSet.
Definition identitygrid.hh:258
IdentityGridFamily< HostGrid::dimension, HostGrid > GridFamily
type of the used GridFamily for this grid
Definition identitygrid.hh:124
Traits::template Codim< codim >::template Partition< PiType >::LeafIterator leafend() const
one past the end of the sequence of leaf entities
Definition identitygrid.hh:215
unsigned int overlapSize(int codim) const
Size of the overlap on the leaf level.
Definition identitygrid.hh:352
Traits::template Codim< codim >::LevelIterator lbegin(int level) const
Iterator to first entity of given codim on level.
Definition identitygrid.hh:166
IdentityGrid(HostGrid &hostgrid)
Constructor.
Definition identitygrid.hh:137
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.
Definition identitygrid.hh:423
unsigned int overlapSize(int level, int codim) const
Size of the overlap on a given level.
Definition identitygrid.hh:364
bool preAdapt()
returns true, if at least one entity is marked for adaption
Definition identitygrid.hh:333
unsigned int ghostSize(int codim) const
Size of the ghost cell layer on the leaf level.
Definition identitygrid.hh:358
Traits::template Codim< EntitySeed::codimension >::Entity entity(const EntitySeed &seed) const
Create Entity from EntitySeed.
Definition identitygrid.hh:284
void communicate(DataHandle &handle, InterfaceType iftype, CommunicationDirection dir) const
Communicate data of leaf gridView.
Definition identitygrid.hh:403
const Communication< No_Comm > & comm() const
dummy communication
Definition identitygrid.hh:388
int getMark(const typename Traits::template Codim< 0 >::Entity &e) const
Return refinement mark for entity.
Definition identitygrid.hh:327
Traits::template Codim< codim >::template Partition< PiType >::LeafIterator leafbegin() const
Iterator to first leaf entity of given codim.
Definition identitygrid.hh:208
provides access to host grid objects from GeometryGrid
Definition identitygrid.hh:37
Definition identitygrid.hh:41
GridTraits< dim, HostGrid::dimensionworld, Dune::IdentityGrid< HostGrid >, IdentityGridGeometry, IdentityGridEntity, IdentityGridLevelIterator, IdentityGridLeafIntersection, IdentityGridLevelIntersection, IdentityGridLeafIntersectionIterator, IdentityGridLevelIntersectionIterator, IdentityGridHierarchicIterator, IdentityGridLeafIterator, IdentityGridLevelIndexSet< const IdentityGrid< HostGrid > >, IdentityGridLeafIndexSet< const IdentityGrid< HostGrid > >, IdentityGridGlobalIdSet< const IdentityGrid< HostGrid > >, typename HostGrid::Traits::GlobalIdSet::IdType, IdentityGridLocalIdSet< const IdentityGrid< HostGrid > >, typename HostGrid::Traits::LocalIdSet::IdType, Communication< No_Comm >, DefaultLevelGridViewTraits, DefaultLeafGridViewTraits, IdentityGridEntitySeed, IdentityGridGeometry, typename HostGrid::Traits::LevelIndexSet::IndexType, typename HostGrid::Traits::LevelIndexSet::Types, typename HostGrid::Traits::LeafIndexSet::IndexType, typename HostGrid::Traits::LeafIndexSet::Types > Traits
Definition identitygrid.hh:73
The implementation of entities in a IdentityGrid.
Definition identitygridentity.hh:55
Iterator over all entities of a given codimension and level of a grid.
Definition identitygridleveliterator.hh:21
Definition identitygridintersectioniterator.hh:84
Iterator over all element neighborsMesh entities of codimension 0 ("elements") allow to visit all nei...
Definition identitygridintersectioniterator.hh:29
Iterator over the descendants of an entity.Mesh entities of codimension 0 ("elements") allow to visit...
Definition identitygridhierarchiciterator.hh:26
The EntitySeed class provides the minimal information needed to restore an Entity using the grid.
Definition identitygridentityseed.hh:24
Definition identitygridgeometry.hh:21
Definition identitygridindexsets.hh:26
Definition identitygridindexsets.hh:96
Definition identitygridindexsets.hh:185
Definition identitygridindexsets.hh:237
An intersection with a leaf neighbor elementMesh entities of codimension 0 ("elements") allow to visi...
Definition identitygridintersections.hh:33
Definition identitygridintersections.hh:192
Iterator over all entities of a given codimension and level of a grid.
Definition identitygridleafiterator.hh:22
A set of traits classes to store static information about grid implementation.
Different resources needed by all grid implementations.
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8