My Project
Loading...
Searching...
No Matches
Dune::cpgrid::PartitionTypeIndicator Class Reference

Public Member Functions

 PartitionTypeIndicator (const CpGridData &data)
 Constructor.
 
PartitionType getPartitionType (const EntityRep< 0 > &cell_entity) const
 Get the partition type of a cell.
 
PartitionType getPartitionTypeWhenLgrs (const Entity< 0 > &cell_entity, bool lgrsOnDistributedGrid) const
 Get the partition type of a cell on a grid that has been distributed, and refined afterwards.
 
PartitionType getPartitionType (const EntityRep< 1 > &face_entity) const
 Get the partition type of a face.
 
PartitionType getPartitionType (const EntityRep< 3 > &point_entity) const
 Get the partition type of a point.
 

Friends

class CpGridData
 
class FacePartitionTypeIterator
 

Constructor & Destructor Documentation

◆ PartitionTypeIndicator()

Dune::cpgrid::PartitionTypeIndicator::PartitionTypeIndicator ( const CpGridData & data)
inline

Constructor.

Parameters
dataThe data of the cornerpoint grid.

Member Function Documentation

◆ getPartitionType() [1/3]

PartitionType Dune::cpgrid::PartitionTypeIndicator::getPartitionType ( const EntityRep< 0 > & cell_entity) const

Get the partition type of a cell.

Parameters
cell_entityThe entity describing the cell
Returns
The partition type of the cell.

◆ getPartitionType() [2/3]

PartitionType Dune::cpgrid::PartitionTypeIndicator::getPartitionType ( const EntityRep< 1 > & face_entity) const

Get the partition type of a face.

Parameters
face_entityThe entity describing the face
Returns
The partition type of the face.

◆ getPartitionType() [3/3]

PartitionType Dune::cpgrid::PartitionTypeIndicator::getPartitionType ( const EntityRep< 3 > & point_entity) const

Get the partition type of a point.

Parameters
point_entityThe entity describing the point.
Returns
The partition type of the point.

◆ getPartitionTypeWhenLgrs()

PartitionType Dune::cpgrid::PartitionTypeIndicator::getPartitionTypeWhenLgrs ( const Entity< 0 > & cell_entity,
bool lgrsOnDistributedGrid ) const

Get the partition type of a cell on a grid that has been distributed, and refined afterwards.

Parameters
cell_entityThe entity describing the cell (Entity::getOrigin() invoked, therefore EntityRep<0> not enough)
lgrsOnDistributedGrid
Returns
The partition type of the cell.

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