triqs.utility.mpi_mpi4py.slice_sup

triqs.utility.mpi_mpi4py.slice_sup(imin, imax)[source]

Upper (inclusive) index of the local slice of [imin, imax].

Companion to slice_inf(). Returns the last index of the chunk owned by the current rank.

Parameters:
imin, imaxint

Inclusive lower and upper bounds of the global range to split.

Returns:
int

Upper (inclusive) index of the local chunk.