X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d0ffc37686edcc803601f76ab51fdfed5fc2f241..239db2df2d2884b52782ad2c7cf141179bf9c352:/teshsuite/smpi/mpich3-test/datatype/hindexed_block_contents.c diff --git a/teshsuite/smpi/mpich3-test/datatype/hindexed_block_contents.c b/teshsuite/smpi/mpich3-test/datatype/hindexed_block_contents.c index e316c70d38..c5d0483548 100644 --- a/teshsuite/smpi/mpich3-test/datatype/hindexed_block_contents.c +++ b/teshsuite/smpi/mpich3-test/datatype/hindexed_block_contents.c @@ -31,15 +31,13 @@ int main(int argc, char **argv) MPI_Datatype t; int count = 4; int blocklength = 2; - MPI_Aint displacements[] = {0, 8, 16, 24}; + MPI_Aint displacements[] = { 0, 8, 16, 24 }; MPI_Init(&argc, &argv); MPI_Comm_rank(MPI_COMM_WORLD, &rank); if (!rank) { - MPI_Type_create_hindexed_block(count, blocklength, - displacements, MPI_INT, - &t); + MPI_Type_create_hindexed_block(count, blocklength, displacements, MPI_INT, &t); MPI_Type_commit(&t); { int ni, na, nd, combiner; @@ -55,7 +53,7 @@ int main(int argc, char **argv) check(i[1] == 2); check(na == 4); - for (k=0; k < na; k++) + for (k = 0; k < na; k++) check(a[k] == (k * 8)); check(nd == 1);