blocks#
- class BlockDecomposition(nProcs, gridSizes, algo='Hybrid', gRank=None, order='C')[source]#
Bases:
objectClass decomposing a cartesian space domain (1D to 3D) into a given number of processors.
- Parameters:
nProcs (
int) – Total number of processors for space block decomposition.gridSizes (
list[int]) – Number of grid points in each dimensionalgo (
str, optional) –Algorithm used for the block decomposition :
Hybrid : approach minimizing interface communication, inspired from the [Hybrid CFD solver].
ChatGPT : quickly generated using [ChatGPT].
The default is “Hybrid”.
gRank (
int, optional) – If provided, the global rank that will determine the local block distribution. Default is None.order (
str, optional) – The order used when computing the rank block distribution. Default is C.