X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d9c9e08948a8387e9e8ecb0fe67ab6b94ec2a66f..d0f67417a4047c5f844bb417daf8f4f1fa285f05:/teshsuite/smpi/mpich3-test/coll/gather.c diff --git a/teshsuite/smpi/mpich3-test/coll/gather.c b/teshsuite/smpi/mpich3-test/coll/gather.c index e14503f3b1..b7152c16ba 100644 --- a/teshsuite/smpi/mpich3-test/coll/gather.c +++ b/teshsuite/smpi/mpich3-test/coll/gather.c @@ -12,73 +12,63 @@ /* Gather data from a vector to contiguous */ -int main( int argc, char **argv ) +int main(int argc, char **argv) { MPI_Datatype vec; - MPI_Comm comm; + MPI_Comm comm; double *vecin, *vecout; - int minsize = 2, count; - int root, i, n, stride, errs = 0; - int rank, size; + int minsize = 2, count; + int root, i, n, stride, errs = 0; + int rank, size; - MTest_Init( &argc, &argv ); + MTest_Init(&argc, &argv); - while (MTestGetIntracommGeneral( &comm, minsize, 1 )) { - if (comm == MPI_COMM_NULL) continue; - /* Determine the sender and receiver */ - MPI_Comm_rank( comm, &rank ); - MPI_Comm_size( comm, &size ); - - for (root=0; root