mpi::map_add
itertools
#include <mpi.hpp>
Synopsis
template<typename T> auto chunk (T && range, communicator comm = {})
Function to chunk a range, distributing it uniformly over all MPI ranks.
T The type of the range
range The range to chunk comm The mpi communicator