--- /dev/null
+/* -*- Mode: C; -*- */
+/* Creator: Jeffrey Vetter (vetter3@llnl.gov) Thu Feb 24 2000 */
+
+#ifndef lint
+static char *rcsid =
+ "$Header: /usr/gapps/asde/cvs-vault/umpire/tests/comm-split-no-free.c,v 1.1.1.1 2000/08/23 17:28:26 vetter Exp $";
+#endif
+
+#include <stdio.h>
+#include <string.h>
+#include "mpi.h"
+
+#define buf_size 128
+
+int
+main (int argc, char **argv)
+{
+ int nprocs = -1;
+ int rank = -1;
+ int comm = MPI_COMM_WORLD;
+ char processor_name[128];
+ int namelen = 128;
+ MPI_Comm newcomm;
+
+ /* init */
+ MPI_Init (&argc, &argv);
+ MPI_Comm_size (comm, &nprocs);
+ MPI_Comm_rank (comm, &rank);
+ MPI_Get_processor_name (processor_name, &namelen);
+ printf ("(%d) is alive on %s\n", rank, processor_name);
+ fflush (stdout);
+
+ MPI_Barrier (comm);
+ {
+ int color = rank % 2;
+ int key = 1;
+ MPI_Comm_split (comm, color, key, &newcomm); /* not freed */
+ }
+ MPI_Barrier (comm);
+
+ printf ("(%d) Finished normally\n", rank);
+ MPI_Finalize ();
+}
+
+/* EOF */