1 /* Copyright (c) 2015-2021. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
8 #include <simgrid/modelchecker.h>
12 int main(int argc, char **argv) {
18 MPI_Init(&argc, &argv);
20 MPI_Comm_size(MPI_COMM_WORLD, &size); /* Get nr of tasks */
21 MPI_Comm_rank(MPI_COMM_WORLD, &rank); /* Get id of this process */
23 MC_ignore(&status.count, sizeof status.count);
27 MPI_Recv(&recv_buff, 1, MPI_INT, MPI_ANY_SOURCE, MPI_ANY_TAG, MPI_COMM_WORLD, &status);
32 MPI_Send(&rank, 1, MPI_INT, 0, 42, MPI_COMM_WORLD);