dune-grid 2.9.0
Public Types | Public Member Functions | List of all members
Dune::IdentityGrid< HostGrid > Class Template Reference

Provides a meta grid that is identical to its host. More...

#include <dune/grid/identitygrid.hh>

Inheritance diagram for Dune::IdentityGrid< HostGrid >:
Inheritance graph

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
 Return maximum level defined in this grid. More...
 
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::GlobalIdSetglobalIdSet () const
 Access to the GlobalIdSet. More...
 
const Traits::LocalIdSetlocalIdSet () const
 Access to the LocalIdSet. More...
 
const Traits::LevelIndexSetlevelIndexSet (int level) const
 Access to the LevelIndexSets. More...
 
const Traits::LeafIndexSetleafIndexSet () const
 Access to the LeafIndexSet. More...
 
template<class EntitySeed >
Traits::template Codim< EntitySeed::codimension >::Entity entity (const EntitySeed &seed) const
 Create Entity from EntitySeed. More...
 
Traits::LevelGridView levelGridView (int level) const
 View for a grid level for All_Partition. More...
 
Traits::LeafGridView leafGridView () const
 View for the leaf grid for All_Partition. More...
 
bool mark (int refCount, const typename Traits ::template Codim< 0 >::Entity &e)
 Marks an entity to be refined/coarsened in a subsequent adapt. More...
 
bool loadBalance ()
 default implementation of load balance does nothing and returns false More...
 
bool loadBalance (DataHandle &data)
 default implementation of load balance does nothing and returns false More...
 
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. More...
 
int getMark (const typename Codim< 0 >::Entity &e) const
 returns adaptation mark for given entity More...
 

Static Public Attributes

Exported constants
static constexpr int dimension
 The dimension of the grid. More...
 
static constexpr int dimensionworld
 The dimension of the world the grid lives in. More...
 

Protected Member Functions

Parallel data distribution and communication
GridImp & asImp ()
 Barton-Nackman trick. More...
 
const GridImp & asImp () const
 Barton-Nackman trick. More...
 

Exported types

typedef GridFamily::Traits::LeafGridView LeafGridView
 type of view for leaf grid More...
 
typedef GridFamily::Traits::LevelGridView LevelGridView
 type of view for level grid More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
using Communication = detected_or_fallback_t< DeprecatedCollectiveCommunication_t, Communication_t, typename GridFamily::Traits >
 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. More...
 
using CollectiveCommunication = Communication
 
using Communication_t = typename T::Communication
 
using DeprecatedCollectiveCommunication_t = typename T::CollectiveCommunication
 

Grid Refinement Methods

HostGrid * hostgrid_
 The host grid which contains the actual grid hierarchy structure. More...
 
void globalRefine (int refCount)
 
bool mark (int refCount, const typename Traits::template Codim< 0 >::Entity &e)
 Mark entity for refinement. More...
 
int getMark (const typename Traits::template Codim< 0 >::Entity &e) const
 Return refinement mark for entity. More...
 
bool preAdapt ()
 returns true, if at least one entity is marked for adaption More...
 
bool adapt ()
 Triggers the grid refinement process. More...
 
void postAdapt ()
 Clean up refinement markers. 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 Communication< No_Comm > & comm () const
 dummy communication More...
 
HostGridTypegetHostGrid () const
 Returns the hostgrid this IdentityGrid lives in. More...
 
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. More...
 

Detailed Description

template<class HostGrid>
class Dune::IdentityGrid< HostGrid >

Provides a meta grid that is identical to its host.

Template Parameters
HostGridThe host grid type wrapped by the IdentityGrid

Member Typedef Documentation

◆ CollectiveCommunication

using Dune::Grid< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::CollectiveCommunication = Communication
inherited
Deprecated:
Use Communication instead! Will be removed at some point in the future.

◆ Communication

using Dune::Grid< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::Communication = detected_or_fallback_t< DeprecatedCollectiveCommunication_t, Communication_t, typename GridFamily::Traits>
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.

◆ Communication_t

using Dune::Grid< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::Communication_t = typename T::Communication
protectedinherited

◆ ctype

template<class HostGrid >
typedef HostGrid::ctype Dune::IdentityGrid< HostGrid >::ctype

The type used to store coordinates, inherited from the HostGrid.

◆ DeprecatedCollectiveCommunication_t

using Dune::Grid< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::DeprecatedCollectiveCommunication_t = typename T::CollectiveCommunication
protectedinherited

◆ GlobalIdSet

typedef GridFamily::Traits::GlobalIdSet Dune::Grid< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::GlobalIdSet
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.

◆ GridFamily

template<class HostGrid >
typedef IdentityGridFamily<HostGrid::dimension,HostGrid> Dune::IdentityGrid< HostGrid >::GridFamily

type of the used GridFamily for this grid

◆ HierarchicIterator

typedef GridFamily::Traits::HierarchicIterator Dune::Grid< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::HierarchicIterator
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.

◆ HostGridType

template<class HostGrid >
typedef HostGrid Dune::IdentityGrid< HostGrid >::HostGridType
Todo:
Should not be public

◆ LeafGridView

typedef GridFamily::Traits::LeafGridView Dune::Grid< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::LeafGridView
inherited

type of view for leaf grid

◆ LeafIndexSet

typedef GridFamily::Traits::LeafIndexSet Dune::Grid< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::LeafIndexSet
inherited

A type that is a model of Dune::IndexSet which provides a consecutive, but non persistent, numbering for entities in the leaf grid.

◆ LeafIntersection

typedef GridFamily::Traits::LeafIntersection Dune::Grid< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::LeafIntersection
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.

◆ LeafIntersectionIterator

typedef GridFamily::Traits::LeafIntersectionIterator Dune::Grid< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::LeafIntersectionIterator
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.

◆ LevelGridView

typedef GridFamily::Traits::LevelGridView Dune::Grid< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::LevelGridView
inherited

type of view for level grid

◆ LevelIndexSet

typedef GridFamily::Traits::LevelIndexSet Dune::Grid< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::LevelIndexSet
inherited

A type that is a model of Dune::IndexSet which provides a consecutive, but non persistent, numbering for entities on a grid level.

◆ LevelIntersection

typedef GridFamily::Traits::LevelIntersection Dune::Grid< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::LevelIntersection
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.

◆ LevelIntersectionIterator

typedef GridFamily::Traits::LevelIntersectionIterator Dune::Grid< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::LevelIntersectionIterator
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.

◆ LocalIdSet

typedef GridFamily::Traits::LocalIdSet Dune::Grid< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::LocalIdSet
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.

◆ Traits

template<class HostGrid >
typedef IdentityGridFamily<HostGrid::dimension,HostGrid>::Traits Dune::IdentityGrid< HostGrid >::Traits

the Traits

Constructor & Destructor Documentation

◆ IdentityGrid()

template<class HostGrid >
Dune::IdentityGrid< HostGrid >::IdentityGrid ( HostGrid &  hostgrid)
inlineexplicit

Constructor.

Parameters
hostgridThe host grid wrapped by the IdentityGrid

◆ ~IdentityGrid()

template<class HostGrid >
Dune::IdentityGrid< HostGrid >::~IdentityGrid ( )
inline

Desctructor.

Member Function Documentation

◆ adapt()

template<class HostGrid >
bool Dune::IdentityGrid< HostGrid >::adapt ( )
inline

Triggers the grid refinement process.

◆ asImp() [1/2]

GridImp & Dune::Grid< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::asImp ( )
inlineprotectedinherited

Barton-Nackman trick.

◆ asImp() [2/2]

const GridImp & Dune::Grid< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::asImp ( ) const
inlineprotectedinherited

Barton-Nackman trick.

◆ comm()

template<class HostGrid >
const Communication< No_Comm > & Dune::IdentityGrid< HostGrid >::comm ( ) const
inline

dummy communication

◆ entity()

template<class HostGrid >
template<class EntitySeed >
Traits::template Codim< EntitySeed::codimension >::Entity Dune::IdentityGrid< HostGrid >::entity ( const EntitySeed seed) const
inline

Create Entity from EntitySeed.

◆ getHostEntity()

template<class HostGrid >
template<int codim>
const HostGrid::Traits::template Codim< codim >::Entity & Dune::IdentityGrid< HostGrid >::getHostEntity ( const typename Traits::template Codim< codim >::Entity &  e) const
inline

Returns the hostgrid entity encapsulated in given IdentityGrid entity.

◆ getHostGrid()

template<class HostGrid >
HostGridType & Dune::IdentityGrid< HostGrid >::getHostGrid ( ) const
inline

Returns the hostgrid this IdentityGrid lives in.

◆ getMark() [1/2]

int Dune::Grid< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::getMark ( const typename Codim< 0 >::Entity &  e) const
inlineinherited

returns adaptation mark for given entity

Parameters
[in]eEntity for which adaptation mark should be determined
Returns
int adaptation mark currently set for given Entity e

◆ getMark() [2/2]

template<class HostGrid >
int Dune::IdentityGrid< HostGrid >::getMark ( const typename Traits::template Codim< 0 >::Entity &  e) const
inline

Return refinement mark for entity.

Returns
refinement mark (1,0,-1)

◆ ghostSize() [1/2]

template<class HostGrid >
unsigned int Dune::IdentityGrid< HostGrid >::ghostSize ( int  codim) const
inline

Size of the ghost cell layer on the leaf level.

◆ ghostSize() [2/2]

template<class HostGrid >
unsigned int Dune::IdentityGrid< HostGrid >::ghostSize ( int  level,
int  codim 
) const
inline

Size of the ghost cell layer on a given level.

◆ globalIdSet()

template<class HostGrid >
const Traits::GlobalIdSet & Dune::IdentityGrid< HostGrid >::globalIdSet ( ) const
inline

Access to the GlobalIdSet.

◆ globalRefine()

template<class HostGrid >
void Dune::IdentityGrid< HostGrid >::globalRefine ( int  refCount)
inline

global refinement

Todo:
optimize implementation

◆ lbegin() [1/2]

template<class HostGrid >
template<int codim>
Traits::template Codim< codim >::LevelIterator Dune::IdentityGrid< HostGrid >::lbegin ( int  level) const
inline

Iterator to first entity of given codim on level.

◆ lbegin() [2/2]

template<class HostGrid >
template<int codim, PartitionIteratorType PiType>
Traits::template Codim< codim >::template Partition< PiType >::LevelIterator Dune::IdentityGrid< HostGrid >::lbegin ( int  level) const
inline

Iterator to first entity of given codim on level.

◆ leafbegin() [1/2]

template<class HostGrid >
template<int codim>
Traits::template Codim< codim >::LeafIterator Dune::IdentityGrid< HostGrid >::leafbegin ( ) const
inline

Iterator to first leaf entity of given codim.

◆ leafbegin() [2/2]

template<class HostGrid >
template<int codim, PartitionIteratorType PiType>
Traits::template Codim< codim >::template Partition< PiType >::LeafIterator Dune::IdentityGrid< HostGrid >::leafbegin ( ) const
inline

Iterator to first leaf entity of given codim.

◆ leafend() [1/2]

template<class HostGrid >
template<int codim>
Traits::template Codim< codim >::LeafIterator Dune::IdentityGrid< HostGrid >::leafend ( ) const
inline

one past the end of the sequence of leaf entities

◆ leafend() [2/2]

template<class HostGrid >
template<int codim, PartitionIteratorType PiType>
Traits::template Codim< codim >::template Partition< PiType >::LeafIterator Dune::IdentityGrid< HostGrid >::leafend ( ) const
inline

one past the end of the sequence of leaf entities

◆ leafGridView()

Traits::LeafGridView Dune::GridDefaultImplementation< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::leafGridView ( ) const
inlineinherited

View for the leaf grid for All_Partition.

◆ leafIndexSet()

template<class HostGrid >
const Traits::LeafIndexSet & Dune::IdentityGrid< HostGrid >::leafIndexSet ( ) const
inline

Access to the LeafIndexSet.

◆ lend() [1/2]

template<class HostGrid >
template<int codim>
Traits::template Codim< codim >::LevelIterator Dune::IdentityGrid< HostGrid >::lend ( int  level) const
inline

one past the end on this level

◆ lend() [2/2]

template<class HostGrid >
template<int codim, PartitionIteratorType PiType>
Traits::template Codim< codim >::template Partition< PiType >::LevelIterator Dune::IdentityGrid< HostGrid >::lend ( int  level) const
inline

one past the end on this level

◆ levelGridView()

Traits::LevelGridView Dune::GridDefaultImplementation< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::levelGridView ( int  level) const
inlineinherited

View for a grid level for All_Partition.

◆ levelIndexSet()

template<class HostGrid >
const Traits::LevelIndexSet & Dune::IdentityGrid< HostGrid >::levelIndexSet ( int  level) const
inline

Access to the LevelIndexSets.

◆ loadBalance() [1/2]

bool Dune::GridDefaultImplementation< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::loadBalance ( )
inlineinherited

default implementation of load balance does nothing and returns false

◆ loadBalance() [2/2]

bool Dune::GridDefaultImplementation< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::loadBalance ( DataHandle &  data)
inlineinherited

default implementation of load balance does nothing and returns false

◆ localIdSet()

template<class HostGrid >
const Traits::LocalIdSet & Dune::IdentityGrid< HostGrid >::localIdSet ( ) const
inline

Access to the LocalIdSet.

◆ mark() [1/3]

bool Dune::Grid< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::mark ( int  refCount,
const typename Codim< 0 >::Entity &  e 
)
inlineinherited

Marks an entity to be refined/coarsened in a subsequent adapt.

Parameters
[in]refCountNumber of subdivisions that should be applied. Negative value means coarsening.
[in]eEntity that should be marked
Returns
true if Entity was marked, false otherwise.

◆ mark() [2/3]

bool Dune::GridDefaultImplementation< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::mark ( int  refCount,
const typename Traits ::template Codim< 0 >::Entity &  e 
)
inlineinherited

Marks an entity to be refined/coarsened in a subsequent adapt.

Parameters
[in]refCountNumber of subdivisions that should be applied. Negative value means coarsening.
[in]eEntity to Entity that should be refined
Returns
true if Entity was marked, false otherwise.
Note
  • default implementation is: return false; for grids with no adaptation.
  • for the grid programmer: this method is implemented as a template method, because the Entity type is not defined when the class is instantiated You won't need this trick in the implementation. In your implementation you should use it as
    bool mark( int refCount,
    typename Traits::template Codim<0>::Entity & e ).
    bool mark(int refCount, const typename Traits::template Codim< 0 >::Entity &e)
    Mark entity for refinement.
    Definition: identitygrid.hh:313
    This template method will vanish due to the inheritance rules.

◆ mark() [3/3]

template<class HostGrid >
bool Dune::IdentityGrid< HostGrid >::mark ( int  refCount,
const typename Traits::template Codim< 0 >::Entity &  e 
)
inline

Mark entity for refinement.

This only works for entities of codim 0. The parameter is currently ignored

Returns
  • true, if marking was succesfull
  • false, if marking was not possible

◆ maxLevel()

template<class HostGrid >
int Dune::IdentityGrid< HostGrid >::maxLevel ( ) const
inline

Return maximum level defined in this grid.

Levels are numbered 0 ... maxlevel with 0 the coarsest level.

◆ numBoundarySegments()

template<class HostGrid >
size_t Dune::IdentityGrid< HostGrid >::numBoundarySegments ( ) const
inline

returns the number of boundary segments within the macro grid

◆ overlapSize() [1/2]

template<class HostGrid >
unsigned int Dune::IdentityGrid< HostGrid >::overlapSize ( int  codim) const
inline

Size of the overlap on the leaf level.

◆ overlapSize() [2/2]

template<class HostGrid >
unsigned int Dune::IdentityGrid< HostGrid >::overlapSize ( int  level,
int  codim 
) const
inline

Size of the overlap on a given level.

◆ postAdapt()

template<class HostGrid >
void Dune::IdentityGrid< HostGrid >::postAdapt ( )
inline

Clean up refinement markers.

◆ preAdapt()

template<class HostGrid >
bool Dune::IdentityGrid< HostGrid >::preAdapt ( )
inline

returns true, if at least one entity is marked for adaption

◆ size() [1/4]

template<class HostGrid >
int Dune::IdentityGrid< HostGrid >::size ( GeometryType  type) const
inline

number of leaf entities per codim and geometry type in this process

◆ size() [2/4]

template<class HostGrid >
int Dune::IdentityGrid< HostGrid >::size ( int  codim) const
inline

number of leaf entities per codim in this process

◆ size() [3/4]

template<class HostGrid >
int Dune::IdentityGrid< HostGrid >::size ( int  level,
GeometryType  type 
) const
inline

number of entities per level, codim and geometry type in this process

◆ size() [4/4]

template<class HostGrid >
int Dune::IdentityGrid< HostGrid >::size ( int  level,
int  codim 
) const
inline

Number of grid entities per level and codim.

Member Data Documentation

◆ dimension

constexpr int Dune::Grid< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::dimension
staticconstexprinherited

The dimension of the grid.

◆ dimensionworld

constexpr int Dune::Grid< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::dimensionworld
staticconstexprinherited

The dimension of the world the grid lives in.

◆ hostgrid_

template<class HostGrid >
HostGrid* Dune::IdentityGrid< HostGrid >::hostgrid_
protected

The host grid which contains the actual grid hierarchy structure.


The documentation for this class was generated from the following file: