X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3080c6b0d097d6b3b7d5b3dda0592154ce438f64..14a764d0473e5137d70be1909b292579acb112ce:/teshsuite/smpi/mpich3-test/rma/test2.c diff --git a/teshsuite/smpi/mpich3-test/rma/test2.c b/teshsuite/smpi/mpich3-test/rma/test2.c index f4399eaeed..b41c56ca08 100644 --- a/teshsuite/smpi/mpich3-test/rma/test2.c +++ b/teshsuite/smpi/mpich3-test/rma/test2.c @@ -3,7 +3,7 @@ * (C) 2001 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */ -#include "mpi.h" +#include "mpi.h" #include "stdio.h" #include "mpitest.h" #include "squelch.h" @@ -13,17 +13,17 @@ #define SIZE1 100 #define SIZE2 200 -int main(int argc, char *argv[]) -{ - int rank, destrank, nprocs, A[SIZE2], B[SIZE2], i; +int main(int argc, char *argv[]) +{ + int rank, destrank, nprocs, A[SIZE2], i; MPI_Comm CommDeuce; MPI_Group comm_group, group; MPI_Win win; int errs = 0; - MTest_Init(&argc,&argv); - MPI_Comm_size(MPI_COMM_WORLD,&nprocs); - MPI_Comm_rank(MPI_COMM_WORLD,&rank); + MTest_Init(&argc, &argv); + MPI_Comm_size(MPI_COMM_WORLD, &nprocs); + MPI_Comm_rank(MPI_COMM_WORLD, &rank); if (nprocs < 2) { printf("Run this program with 2 or more processes\n"); @@ -32,40 +32,57 @@ int main(int argc, char *argv[]) MPI_Comm_split(MPI_COMM_WORLD, (rank < 2), rank, &CommDeuce); - if (rank < 2) - { + if (rank < 2) { MPI_Comm_group(CommDeuce, &comm_group); if (rank == 0) { - for (i=0; i