openPMD-api
|
Abstract class to associate a thread with its local cuboid in the total cuboid. More...
#include <BlockSlicer.hpp>
Public Member Functions | |
virtual std::pair< Offset, Extent > | sliceBlock (Extent &totalExtent, int size, int rank)=0 |
Associate the current thread with its cuboid. More... | |
virtual | ~BlockSlicer ()=default |
This class will be derived from. | |
Abstract class to associate a thread with its local cuboid in the total cuboid.
|
pure virtual |
Associate the current thread with its cuboid.
totalExtent | The total extent of the cuboid. |
size | The number of threads to be used (not greater than MPI size). |
rank | The MPI rank. |
Implemented in openPMD::OneDimensionalBlockSlicer.