X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fc0a76c21f0bceb0314aee5d62f785ea8009495e..5ca17dc381bb7fba4f2689143e2080f7549ee0ab:/teshsuite/smpi/mpich3-test/rma/selfrma.c diff --git a/teshsuite/smpi/mpich3-test/rma/selfrma.c b/teshsuite/smpi/mpich3-test/rma/selfrma.c index ca8ae4ba84..6a8b4f086f 100644 --- a/teshsuite/smpi/mpich3-test/rma/selfrma.c +++ b/teshsuite/smpi/mpich3-test/rma/selfrma.c @@ -14,99 +14,95 @@ static char MTEST_Descrip[] = "RMA to self"; */ -int main( int argc, char *argv[] ) +int main(int argc, char *argv[]) { int errs = 0; int rank, size, i, j; - MPI_Comm comm; - MPI_Win win; - int *winbuf, count; - int *sbuf, scount, vcount; - MPI_Datatype vectype; + MPI_Comm comm; + MPI_Win win; + int *winbuf, count; + int *sbuf, scount, vcount; + MPI_Datatype vectype; - MTest_Init( &argc, &argv ); + MTest_Init(&argc, &argv); comm = MPI_COMM_WORLD; - MPI_Comm_rank( comm, &rank ); - MPI_Comm_size( comm, &size ); + MPI_Comm_rank(comm, &rank); + MPI_Comm_size(comm, &size); /* Allocate and initialize sbuf */ scount = 1000; - count = 1000; - sbuf = (int *)malloc( scount * sizeof(int) ); + count = 1000; + sbuf = (int *) malloc(scount * sizeof(int)); if (!sbuf) { - fprintf( stderr, "Could not allocate send buffer f size %d\n", - scount ); - MPI_Abort( MPI_COMM_WORLD, 0 ); + fprintf(stderr, "Could not allocate send buffer f size %d\n", scount); + MPI_Abort(MPI_COMM_WORLD, 0); } - for (i=0; i