MPI_Scan

int MPI_Scan(void* , void*, int, MPI_Datatype, MPI_Op, MPI_Comm );
Performs a parallel prefix reduction on data distributed across a group.