|
|
| 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.
|
| |
| virtual std::unique_ptr< BlockSlicer > | clone () const override |
| |
|
virtual | ~BlockSlicer ()=default |
| | This class will be derived from.
|
| |
|
|
static std::pair< size_t, size_t > | n_th_block_inside (size_t length, size_t rank, size_t size) |
| |
◆ clone()
| std::unique_ptr< BlockSlicer > openPMD::auxiliary::OneDimensionalBlockSlicer::clone |
( |
| ) |
const |
|
overridevirtual |
◆ sliceBlock()
| std::pair< Offset, Extent > openPMD::auxiliary::OneDimensionalBlockSlicer::sliceBlock |
( |
Extent & | totalExtent, |
|
|
int | size, |
|
|
int | rank ) |
|
overridevirtual |
Associate the current thread with its cuboid.
- Parameters
-
| totalExtent | The total extent of the cuboid. |
| size | The number of threads to be used (not greater than MPI size). |
| rank | The MPI rank. |
- Returns
- A pair of the cuboid's offset and extent.
Implements openPMD::auxiliary::BlockSlicer.
The documentation for this class was generated from the following files:
- /tmp/tmp.NhLRcLhrNZ/openPMD-api/include/openPMD/auxiliary/OneDimensionalBlockSlicer.hpp
- /tmp/tmp.NhLRcLhrNZ/openPMD-api/src/auxiliary/OneDimensionalBlockSlicer.cpp