X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c81c99a491282f76757c2673961e3cdee6853539..b9625f82f86db0674e911887addce45dca31b57f:/teshsuite/smpi/mpich3-test/pt2pt/bsend2.c diff --git a/teshsuite/smpi/mpich3-test/pt2pt/bsend2.c b/teshsuite/smpi/mpich3-test/pt2pt/bsend2.c index 4f6ad93ac7..eb0aa4ebfe 100644 --- a/teshsuite/smpi/mpich3-test/pt2pt/bsend2.c +++ b/teshsuite/smpi/mpich3-test/pt2pt/bsend2.c @@ -8,54 +8,53 @@ #include "mpitest.h" #define BUFSIZE 2000 -int main( int argc, char *argv[] ) +int main(int argc, char *argv[]) { MPI_Status status; int a[10], b[10]; int buf[BUFSIZE], *bptr, bl, i, j, rank, size; int errs = 0; - MTest_Init( 0, 0 ); - MPI_Comm_rank( MPI_COMM_WORLD, &rank ); - MPI_Comm_size( MPI_COMM_WORLD, &size ); - MPI_Buffer_attach( buf, BUFSIZE ); - - for (j=0; j<10; j++) { - for (i=0; i<10; i++) { - a[i] = (rank + 10 * j) * size + i; - } - MPI_Bsend( a, 10, MPI_INT, 0, 27+j, MPI_COMM_WORLD ); + MTest_Init(0, 0); + MPI_Comm_rank(MPI_COMM_WORLD, &rank); + MPI_Comm_size(MPI_COMM_WORLD, &size); + MPI_Buffer_attach(buf, BUFSIZE); + + for (j = 0; j < 10; j++) { + for (i = 0; i < 10; i++) { + a[i] = (rank + 10 * j) * size + i; + } + MPI_Bsend(a, 10, MPI_INT, 0, 27 + j, MPI_COMM_WORLD); } if (rank == 0) { - for (i=0; i