> MPI::COMM_WORLD.Reduce(&mypi, &pi, 1, MPI::DOUBLE, MPI::SUM, 0);
> --
> A I have a simple question : in this case, results are combined (reduced) on all the computers ?
No, the reduced result only exists on the process whose rank is specified
as the root process, which is 0 in this case.
See:
http://www.mpi-forum.org/docs/mpi-11-html/node77.html#Node77
Hugh
|