X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d65d1121602ae06e7c9854a07099aaaa60f40bbd..bdee40d2bc54baf9489148cbfbd6bd1fcd6469df:/examples/smpi/sendrecv.c diff --git a/examples/smpi/sendrecv.c b/examples/smpi/sendrecv.c index 3f3aeeef27..ae9e297194 100644 --- a/examples/smpi/sendrecv.c +++ b/examples/smpi/sendrecv.c @@ -1,7 +1,14 @@ +/* Copyright (c) 2009, 2010. The SimGrid Team. + * All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ + #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. @@ -10,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