2 /* Creator: Bronis R. de Supinski (bronis@llnl.gov) */
4 /* type-no-error.c -- construct a type and free it */
8 "$Header: /usr/gapps/asde/cvs-vault/umpire/tests/type-no-error.c,v 1.1 2002/05/29 16:09:51 bronis Exp $";
18 main (int argc, char **argv)
22 MPI_Comm comm = MPI_COMM_WORLD;
23 char processor_name[128];
25 MPI_Datatype newtype, newtype2;
28 MPI_Init (&argc, &argv);
29 MPI_Comm_size (comm, &nprocs);
30 MPI_Comm_rank (comm, &rank);
31 MPI_Get_processor_name (processor_name, &namelen);
32 printf ("(%d) is alive on %s\n", rank, processor_name);
36 MPI_Type_contiguous (128, MPI_INT, &newtype);
37 MPI_Type_free (&newtype);
39 /* now with an alias... */
40 MPI_Type_contiguous (128, MPI_INT, &newtype);
42 MPI_Type_free (&newtype2);
45 printf ("(%d) Finished normally\n", rank);