1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
4 * (C) 2003 by Argonne National Laboratory.
5 * See COPYRIGHT in top-level directory.
12 static char MTEST_Descrip[] = "Create a communicator with a graph that contains no processes";
15 int main(int argc, char *argv[])
18 int *index = 0, *edges = 0;
21 MTest_Init(&argc, &argv);
23 /* MPI 2.1, page 246, lines 29-30 make it clear that this is a valid
24 * (not erroneous) call that must return MPI_COMM_NULL */
25 MPI_Graph_create(MPI_COMM_WORLD, 0, index, edges, 0, &comm);
26 if (comm != MPI_COMM_NULL) {
28 fprintf(stderr, "Expected MPI_COMM_NULL from empty graph create\n");