X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fc0a76c21f0bceb0314aee5d62f785ea8009495e..b3b0436f0dd7d2216764a7c0d1f25ed9312d524e:/teshsuite/smpi/mpich3-test/rma/wintest.c diff --git a/teshsuite/smpi/mpich3-test/rma/wintest.c b/teshsuite/smpi/mpich3-test/rma/wintest.c index a8a784c3ad..d28f806cca 100644 --- a/teshsuite/smpi/mpich3-test/rma/wintest.c +++ b/teshsuite/smpi/mpich3-test/rma/wintest.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" @@ -13,17 +13,17 @@ #define SIZE1 10 #define SIZE2 20 -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, flag; - 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"); @@ -36,27 +36,44 @@ int main(int argc, char *argv[]) MPI_Comm_group(CommDeuce, &comm_group); if (rank == 0) { - for (i=0; i