MPI_compute_local_range

dolfin.cpp.common.MPI_compute_local_range(process, N, size)

Return local range for given process, splitting [0, N - 1] into size() portions of almost equal size