X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d9c9e08948a8387e9e8ecb0fe67ab6b94ec2a66f..5ca17dc381bb7fba4f2689143e2080f7549ee0ab:/teshsuite/smpi/mpich3-test/rma/acc-loc.c diff --git a/teshsuite/smpi/mpich3-test/rma/acc-loc.c b/teshsuite/smpi/mpich3-test/rma/acc-loc.c index 18c3e3a947..6e76970636 100644 --- a/teshsuite/smpi/mpich3-test/rma/acc-loc.c +++ b/teshsuite/smpi/mpich3-test/rma/acc-loc.c @@ -20,7 +20,8 @@ typedef struct { static int errors = 0; -int main(int argc, char **argv) { +int main(int argc, char **argv) +{ int me, nproc; twoint_t *data = NULL; twoint_t mine; @@ -76,10 +77,10 @@ int main(int argc, char **argv) { MPI_Accumulate(&mine, 1, MPI_2INT, 0, 0, 1, MPI_2INT, MPI_MINLOC, win); MPI_Win_fence(0, win); - if (me == 0 && (data->loc != nproc-1 || data->val != 1)) { + if (me == 0 && (data->loc != nproc - 1 || data->val != 1)) { errors++; printf("Expected: { loc = %d, val = %d } Actual: { loc = %d, val = %d }\n", - nproc-1, 1, data->loc, data->val); + nproc - 1, 1, data->loc, data->val); } /* All processes perform MAXLOC and MINLOC operations on a 2INT on rank 0.