X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6760cb07d6b57be16928d95339d71e57c4e24f36..6de9090dd8692387ae343c587b26915f9922d7bd:/examples/smpi/bcast.c diff --git a/examples/smpi/bcast.c b/examples/smpi/bcast.c index 4b594e3a22..72ad419524 100644 --- a/examples/smpi/bcast.c +++ b/examples/smpi/bcast.c @@ -26,9 +26,10 @@ int main(int argc, char **argv) if (0 == rank) { value = 17; } - printf("node %d has value %d before broadcast\n", rank, value); MPI_Bcast(&value, 1, MPI_INT, 0, MPI_COMM_WORLD); - printf("node %d has value %d after broadcast\n", rank, value); + if (value != 17) { + printf("node %d has value %d after broadcast\n", rank, value); + } MPI_Barrier(MPI_COMM_WORLD); if (0 == rank && !quiet)