X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0e9c0448c6566825b170b98ecff716b098bda10e..b1f5b9489d84e72cc1c4a0b51fe3940526de890c:/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);