diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2011-08-30 16:51:32 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2011-08-30 16:51:32 (GMT) |
commit | 26f47610b1900111fe0919c3bcaa835639dfe462 (patch) | |
tree | fc4e730c0b598017b81ce340f0241730050655fd /tools/h5diff/ph5diff_main.c | |
parent | 40480c8a72af7753d5586b8af648d96b91c34813 (diff) | |
download | hdf5-26f47610b1900111fe0919c3bcaa835639dfe462.zip hdf5-26f47610b1900111fe0919c3bcaa835639dfe462.tar.gz hdf5-26f47610b1900111fe0919c3bcaa835639dfe462.tar.bz2 |
[svn-r21337] Synchronize cmake files with tested commits from trunk, windows parallel diff
Diffstat (limited to 'tools/h5diff/ph5diff_main.c')
-rw-r--r-- | tools/h5diff/ph5diff_main.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tools/h5diff/ph5diff_main.c b/tools/h5diff/ph5diff_main.c index 871b93b..67b0c92 100644 --- a/tools/h5diff/ph5diff_main.c +++ b/tools/h5diff/ph5diff_main.c @@ -245,3 +245,32 @@ ph5diff_worker(int nID) } } +/*------------------------------------------------------------------------- + * Function: h5diff_exit + * + * Purpose: dismiss phdiff worker processes and exit + * + * Return: none + * + * Programmer: Albert Cheng + * Date: Feb 6, 2005 + * + * Comments: + * + * Modifications: + * + *------------------------------------------------------------------------- + */ +void h5diff_exit(int status) +{ + /* if in parallel mode, dismiss workers, close down MPI, then exit */ + if((g_nTasks > 1) && g_Parallel) { + phdiff_dismiss_workers(); + MPI_Barrier(MPI_COMM_WORLD); + } + if(g_Parallel) + MPI_Finalize(); + + exit(status); +} + |