X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/406f54970c00ca178fa918763d943027bd09e3ba..b784c77ac5599c578f0ff00d6102222b286b0833:/teshsuite/smpi/dsend.c diff --git a/teshsuite/smpi/dsend.c b/teshsuite/smpi/dsend.c index c304c5da31..8043e5b0d8 100644 --- a/teshsuite/smpi/dsend.c +++ b/teshsuite/smpi/dsend.c @@ -1,4 +1,5 @@ -/* Copyright (c) 2011. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2011-2013. 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. */ @@ -23,7 +24,7 @@ int main(int argc, char *argv[]) { MPI_Send(&data,1,MPI_INT,(rank+1)%2,666,MPI_COMM_WORLD); // smpi_sleep(1000); } else { - MPI_Recv(&data,1,MPI_INT,-1,666,MPI_COMM_WORLD,NULL); + MPI_Recv(&data,1,MPI_INT,MPI_ANY_SOURCE,666,MPI_COMM_WORLD,NULL); if (data !=22) { printf("rank %d: Damn, data does not match (got %d)\n",rank, data); }