|
VTK
9.7.20260801
|
#include <vtkBlockDistribution.h>
A helper class that manages a block distribution of N elements of data.
Definition at line 19 of file vtkBlockDistribution.h.
Public Member Functions | |
| vtkBlockDistribution (vtkIdType N, vtkIdType P) | |
| Create a block distribution with N elements on P processors. | |
| vtkIdType | GetNumElements () |
| Retrieves the number of elements for which this block distribution was built. | |
| vtkIdType | GetNumProcessors () |
| Retrieves the number of processors for which this block distribution was built. | |
| vtkIdType | GetBlockSize (vtkIdType rank) |
| Get the block size for the processor with the given rank. | |
| vtkIdType | GetProcessorOfElement (vtkIdType globalIndex) |
| Retrieve the process number in [0, GetNumProcessors()) where the element with the given global index will be located. | |
| vtkIdType | GetLocalIndexOfElement (vtkIdType globalIndex) |
| Retrieve the local index (offset) on the processor determined by GetProcessorOfElement that refers to the given global index. | |
| vtkIdType | GetFirstGlobalIndexOnProcessor (vtkIdType rank) |
| Retrieve the first global index stored on the processor with the given rank. | |
| vtkIdType | GetGlobalIndex (vtkIdType localIndex, vtkIdType rank) |
| Retrieve the global index associated with the given local index on the processor with the given rank. | |
Create a block distribution with N elements on P processors.
Definition at line 76 of file vtkBlockDistribution.h.
|
inline |
Retrieves the number of elements for which this block distribution was built.
Definition at line 31 of file vtkBlockDistribution.h.
|
inline |
Retrieves the number of processors for which this block distribution was built.
Definition at line 37 of file vtkBlockDistribution.h.
Get the block size for the processor with the given rank.
This is the number of elements that the processor will store.
Definition at line 84 of file vtkBlockDistribution.h.
Retrieve the process number in [0, GetNumProcessors()) where the element with the given global index will be located.
Definition at line 92 of file vtkBlockDistribution.h.
Retrieve the local index (offset) on the processor determined by GetProcessorOfElement that refers to the given global index.
Definition at line 110 of file vtkBlockDistribution.h.
Retrieve the first global index stored on the processor with the given rank.
Definition at line 118 of file vtkBlockDistribution.h.
Retrieve the global index associated with the given local index on the processor with the given rank.
Definition at line 134 of file vtkBlockDistribution.h.