main
|
Last change
on this file was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago |
|
Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.
git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c
|
-
Property mode
set to
100644
|
|
File size:
1011 bytes
|
| Rev | Line | |
|---|
| [3d54c23] | 1 | /* -*- Mode: C; -*- */
|
|---|
| 2 | /* Creator: Jeffrey Vetter (vetter3@llnl.gov) Thu Feb 24 2000 */
|
|---|
| 3 |
|
|---|
| 4 | /* type-commit-twice.c -- do a type commit twice w/ the same type */
|
|---|
| 5 |
|
|---|
| 6 | #ifndef lint
|
|---|
| 7 | static char *rcsid =
|
|---|
| 8 | "$Header: /usr/gapps/asde/cvs-vault/umpire/tests/comm-dup-no-free.c,v 1.1.1.1 2000/08/23 17:28:26 vetter Exp $";
|
|---|
| 9 | #endif
|
|---|
| 10 |
|
|---|
| 11 | #include <stdio.h>
|
|---|
| 12 | #include <string.h>
|
|---|
| 13 | #include "mpi.h"
|
|---|
| 14 |
|
|---|
| 15 | #define buf_size 128
|
|---|
| 16 |
|
|---|
| 17 | int
|
|---|
| 18 | main (int argc, char **argv)
|
|---|
| 19 | {
|
|---|
| 20 | int nprocs = -1;
|
|---|
| 21 | int rank = -1;
|
|---|
| 22 | //int comm = MPI_COMM_WORLD;
|
|---|
| 23 | MPI_Comm comm = MPI_COMM_WORLD;
|
|---|
| 24 | char processor_name[128];
|
|---|
| 25 | int namelen = 128;
|
|---|
| 26 | MPI_Comm newcomm;
|
|---|
| 27 |
|
|---|
| 28 | /* init */
|
|---|
| 29 | MPI_Init (&argc, &argv);
|
|---|
| 30 | MPI_Comm_size (comm, &nprocs);
|
|---|
| 31 | MPI_Comm_rank (comm, &rank);
|
|---|
| 32 | MPI_Get_processor_name (processor_name, &namelen);
|
|---|
| 33 | // printf ("(%d) is alive on %s\n", rank, processor_name);
|
|---|
| 34 | fflush (stdout);
|
|---|
| 35 |
|
|---|
| 36 | MPI_Barrier (comm);
|
|---|
| 37 | MPI_Comm_dup (comm, &newcomm); /* not freed */
|
|---|
| 38 | MPI_Barrier (comm);
|
|---|
| 39 |
|
|---|
| 40 | printf ("(%d) Finished normally\n", rank);
|
|---|
| 41 | MPI_Finalize ();
|
|---|
| 42 | }
|
|---|
| 43 |
|
|---|
| 44 | /* EOF */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.