X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3928c9b3860770cd5efbaa3515e9df6d09273e52..b382315f0693083344eb9a25a8fc37b7091bddc7:/teshsuite/smpi/mpich3-test/coll/red3.c diff --git a/teshsuite/smpi/mpich3-test/coll/red3.c b/teshsuite/smpi/mpich3-test/coll/red3.c index a13561cc56..599d0a37ad 100644 --- a/teshsuite/smpi/mpich3-test/coll/red3.c +++ b/teshsuite/smpi/mpich3-test/coll/red3.c @@ -14,9 +14,9 @@ static char MTEST_Descrip[] = "Test MPI_Reduce with non-commutative user-define */ /* * This tests that the reduce operation respects the noncommutative flag. - * See red4.c for a version that can distinguish between P_{root} P_{root+1} + * See red4.c for a version that can distinguish between P_{root} P_{root+1} * ... P_{root-1} and P_0 ... P_{size-1} . The MPI standard clearly - * specifies that the result is P_0 ... P_{size-1}, independent of the root + * specifies that the result is P_0 ... P_{size-1}, independent of the root * (see 4.9.4 in MPI-1) */ @@ -27,180 +27,181 @@ static char MTEST_Descrip[] = "Test MPI_Reduce with non-commutative user-define c(i,j) is cin[j+i*matSize] */ #define MAXCOL 256 -static int matSize = 0; /* Must be < MAXCOL */ -void uop( void *cinPtr, void *coutPtr, int *count, MPI_Datatype *dtype ); -void uop( void *cinPtr, void *coutPtr, int *count, MPI_Datatype *dtype ) +static int matSize = 0; /* Must be < MAXCOL */ +void uop(void *cinPtr, void *coutPtr, int *count, MPI_Datatype * dtype); +void uop(void *cinPtr, void *coutPtr, int *count, MPI_Datatype * dtype) { - const int *cin = (const int *)cinPtr; - int *cout = (int *)coutPtr; + const int *cin = (const int *) cinPtr; + int *cout = (int *) coutPtr; int i, j, k, nmat; int tempCol[MAXCOL]; for (nmat = 0; nmat < *count; nmat++) { - for (j=0; j