Return a balanced distribution of processes per coordinate direction.
nnodes (int)
dims (int | Sequence[int])
list[int]
mpi4py.MPI.Close_port
mpi4py.MPI.Detach_buffer