diff options
author | Robb Matzke <matzke@llnl.gov> | 2000-10-31 19:40:59 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 2000-10-31 19:40:59 (GMT) |
commit | 350fa2af782285de92e947cb29ab0c207867aacb (patch) | |
tree | 744de46888b06a41cfe069ff122245648aac3b38 /tools | |
parent | da4f3fd1555091e0a94cee62f7752f570d74c663 (diff) | |
download | hdf5-350fa2af782285de92e947cb29ab0c207867aacb.zip hdf5-350fa2af782285de92e947cb29ab0c207867aacb.tar.gz hdf5-350fa2af782285de92e947cb29ab0c207867aacb.tar.bz2 |
[svn-r2781] ./hdf5/tools/h5ls.c
* 2000-10-31 Robb Matzke <matzke@llnl.gov> (main)
Added calls to MPI_Init() and MPI_Finalize() for parallel
versions in order to prevent errors about unrecognized
command-line options.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/h5ls.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/h5ls.c b/tools/h5ls.c index fa4c738..5abe4e1 100644 --- a/tools/h5ls.c +++ b/tools/h5ls.c @@ -1923,6 +1923,10 @@ main (int argc, char *argv[]) static char root_name[] = "/"; char drivername[50]; +#ifdef HAVE_PARALLEL + MPI_Init(&argc, &argv); + atexit(MPI_Finalize); +#endif /* Build display table */ DISPATCH(H5G_DATASET, "Dataset", H5Dopen, H5Dclose, |