- fprintf(stderr,"node %d has value %d after broadcast\n", rank, value);
- if (value != TARGET_VALUE) {
- fprintf(stderr,"node %d don't have the target value after broadcast!!\n", rank);
- exit(1);
- }
+ printf("node %d has value %d\n", rank, value);
+
+ MPI_Barrier( MPI_COMM_WORLD );
+ if ( 0 == rank)
+ printf("Elapsed time on rank %d: %lf s\n", rank, MPI_Wtime()-start_timer);