X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dccf1b41e9c7b5a696f01abceaa2779fe65f154f..HEAD:/examples/smpi/mc/non_termination1.c diff --git a/examples/smpi/mc/non_termination1.c b/examples/smpi/mc/non_termination1.c deleted file mode 100644 index 24f0593a0c..0000000000 --- a/examples/smpi/mc/non_termination1.c +++ /dev/null @@ -1,36 +0,0 @@ -#include -#include -#include - -int x = 5; -int y = 8; - -int main(int argc, char **argv) { - int recv_buff, size, rank; - MPI_Status status; - - MPI_Init(&argc, &argv); - - MPI_Comm_size(MPI_COMM_WORLD, &size); /* Get nr of tasks */ - MPI_Comm_rank(MPI_COMM_WORLD, &rank); /* Get id of this process */ - - MC_ignore(&(status.count), sizeof(status.count)); - - if (rank == 0) { - while (1) { - MPI_Recv(&recv_buff, 1, MPI_INT, MPI_ANY_SOURCE, MPI_ANY_TAG, MPI_COMM_WORLD, &status); - } - } else { - while (1) { - int old_x = x; - x = -y; - y = old_x; - printf("x = %d, y = %d\n", x, y); - MPI_Send(&rank, 1, MPI_INT, 0, 42, MPI_COMM_WORLD); - } - } - - MPI_Finalize(); - - return 0; -}