Public Member Functions | Public Attributes | List of all members
openPMD::OneDimensionalBlockSlicer Class Reference
Inheritance diagram for openPMD::OneDimensionalBlockSlicer:
Inheritance graph
Collaboration diagram for openPMD::OneDimensionalBlockSlicer:
Collaboration graph

Public Member Functions

 OneDimensionalBlockSlicer (Extent::value_type dim=0)
std::pair< Offset, Extent > sliceBlock (Extent &totalExtent, int size, int rank) override
 Associate the current thread with its cuboid. More...
- Public Member Functions inherited from openPMD::BlockSlicer
virtual ~BlockSlicer ()=default
 This class will be derived from.

Public Attributes

Extent::value_type m_dim

Member Function Documentation

◆ sliceBlock()

std::pair< Offset, Extent > openPMD::OneDimensionalBlockSlicer::sliceBlock ( Extent &  totalExtent,
int  size,
int  rank 

Associate the current thread with its cuboid.

totalExtentThe total extent of the cuboid.
sizeThe number of threads to be used (not greater than MPI size).
rankThe MPI rank.
A pair of the cuboid's offset and extent.

Implements openPMD::BlockSlicer.

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