X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c57842fe897f53b46f0be3da87f7c996674be7d6..c505117d2d46a87d2a637e17f1027f2ca37c3f14:/teshsuite/smpi/mpich3-test/rma/transpose1.c diff --git a/teshsuite/smpi/mpich3-test/rma/transpose1.c b/teshsuite/smpi/mpich3-test/rma/transpose1.c index 908ecc0820..d2ed149a11 100644 --- a/teshsuite/smpi/mpich3-test/rma/transpose1.c +++ b/teshsuite/smpi/mpich3-test/rma/transpose1.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 #include "mpitest.h" @@ -15,17 +15,17 @@ #define NROWS 1000 #define NCOLS 1000 -int main(int argc, char *argv[]) -{ +int main(int argc, char *argv[]) +{ int rank, nprocs, **A, *A_data, i, j; MPI_Comm CommDeuce; MPI_Win win; MPI_Datatype column, xpose; 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"); @@ -39,14 +39,13 @@ int main(int argc, char *argv[]) A = (int **) malloc(NROWS * sizeof(int *)); A[0] = A_data; - for (i=1; i= 50) - { + if (errs >= 50) { printf("Total number of errors: %d\n", errs); } } @@ -104,6 +98,6 @@ int main(int argc, char *argv[]) } MPI_Comm_free(&CommDeuce); MTest_Finalize(errs); - MPI_Finalize(); - return 0; -} + MPI_Finalize(); + return 0; +}