diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2011-08-08 21:59:09 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2011-08-08 21:59:09 (GMT) |
commit | dd7693bde03b81f05dbde5a7e6c866951326946f (patch) | |
tree | 73a6106ceaa51ca1b7c88c9b9749082678ab5d6f /tools/h5diff/ph5diff_main.c | |
parent | 13beaa1a6fa80a2d1f4aab42f9c5e1740853bbf0 (diff) | |
download | hdf5-dd7693bde03b81f05dbde5a7e6c866951326946f.zip hdf5-dd7693bde03b81f05dbde5a7e6c866951326946f.tar.gz hdf5-dd7693bde03b81f05dbde5a7e6c866951326946f.tar.bz2 |
[svn-r21195] Correct windows exports for h5diff.
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); +} + |