X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/50bc81a8526eb95a52e6a4b4a2ae1be94dfb24c1..29f11d3b5a25895bbd8dcaccc57e7d3bc2fa8d83:/teshsuite/smpi/mpich3-test/datatype/sendrecvt4.c?ds=sidebyside diff --git a/teshsuite/smpi/mpich3-test/datatype/sendrecvt4.c b/teshsuite/smpi/mpich3-test/datatype/sendrecvt4.c index d1ff29d896..bd3338dc1f 100644 --- a/teshsuite/smpi/mpich3-test/datatype/sendrecvt4.c +++ b/teshsuite/smpi/mpich3-test/datatype/sendrecvt4.c @@ -15,139 +15,134 @@ This version sends and receives EVERYTHING from MPI_BOTTOM, by putting the data into a structure. */ -int main( int argc, char **argv ) +int main(int argc, char **argv) { MPI_Datatype *types; - void **inbufs, **outbufs; - int *counts, *bytesize, ntype; - MPI_Comm comm; - int rank, np, partner, tag, count; - int j, k, err, world_rank, errloc; - MPI_Status status; - char *obuf; + void **inbufs, **outbufs; + int *counts, *bytesize, ntype; + MPI_Comm comm; + int rank, np, partner, tag, count; + int j, k, err, world_rank, errloc; + MPI_Status status; + char *obuf; MPI_Datatype offsettype; - int blen; - MPI_Aint displ, extent, natural_extent; - char myname[MPI_MAX_OBJECT_NAME]; - int mynamelen; + int blen; + MPI_Aint displ, extent, natural_extent; + char myname[MPI_MAX_OBJECT_NAME]; + int mynamelen; - MTest_Init( &argc, &argv ); + MTest_Init(&argc, &argv); - MTestDatatype2Allocate( &types, &inbufs, &outbufs, &counts, &bytesize, - &ntype ); - MTestDatatype2Generate( types, inbufs, outbufs, counts, bytesize, &ntype ); + MTestDatatype2Allocate(&types, &inbufs, &outbufs, &counts, &bytesize, &ntype); + MTestDatatype2Generate(types, inbufs, outbufs, counts, bytesize, &ntype); - MPI_Comm_rank( MPI_COMM_WORLD, &world_rank ); + MPI_Comm_rank(MPI_COMM_WORLD, &world_rank); /* Test over a wide range of datatypes and communicators */ err = 0; tag = 0; - while (MTestGetIntracomm( &comm, 2 )) { - if (comm == MPI_COMM_NULL) continue; - MPI_Comm_rank( comm, &rank ); - MPI_Comm_size( comm, &np ); - if (np < 2) continue; - tag++; - for (j=0; j