X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6760cb07d6b57be16928d95339d71e57c4e24f36..9a5d187c1f279fb658e4b86dbcf84e7cb73c722c:/examples/smpi/sendrecv.c diff --git a/examples/smpi/sendrecv.c b/examples/smpi/sendrecv.c index cb97aa43a6..ae9e297194 100644 --- a/examples/smpi/sendrecv.c +++ b/examples/smpi/sendrecv.c @@ -7,7 +7,8 @@ #include "mpi.h" #include -static int test(int myid, int numprocs) { +static int test(int myid, int numprocs) +{ // The tags should match on the sender and receiver side. // The distinction between sendtag and recvtag is mainly // useful to make some other Recv or Send calls match the sendrecv. @@ -16,53 +17,54 @@ static int test(int myid, int numprocs) { #define BUFLEN 10 - int left, right; - int buffer[BUFLEN], buffer2[BUFLEN]; - int i; - MPI_Status status; + int left, right; + int buffer[BUFLEN], buffer2[BUFLEN]; + int i; + MPI_Status status; - for (i=0;i