diff options
author | MuQun Yang <ymuqun@hdfgroup.org> | 2005-12-29 19:04:38 (GMT) |
---|---|---|
committer | MuQun Yang <ymuqun@hdfgroup.org> | 2005-12-29 19:04:38 (GMT) |
commit | 169ffa4b5a93c4c63ff67ba5b959c78e78e0cfc1 (patch) | |
tree | ee458520854bb1623cf0c2c611a016209572f00b | |
parent | f8cfbac475b8039672c45de81cb4a6bdccc4204e (diff) | |
download | hdf5-169ffa4b5a93c4c63ff67ba5b959c78e78e0cfc1.zip hdf5-169ffa4b5a93c4c63ff67ba5b959c78e78e0cfc1.tar.gz hdf5-169ffa4b5a93c4c63ff67ba5b959c78e78e0cfc1.tar.bz2 |
[svn-r11847] Purpose:
Add 1.4 backward compatible flag
Description:
An extra argument has been added to H5Pset_mpioposix in 1.6 but not in 1.4.
Solution:
Platforms tested:
Linux 2.4(heping)
Too minor to test at other platforms.
Misc. update:
-rw-r--r-- | tools/lib/h5tools.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c index 06197a6..f5bd847 100644 --- a/tools/lib/h5tools.c +++ b/tools/lib/h5tools.c @@ -242,7 +242,11 @@ int UNUSED argc, const char UNUSED *argv[] } else if (!strcmp(driver, drivernames[MPIPOSIX_IDX])) { /* MPI-I/O Driver */ if((fapl = H5Pcreate(H5P_FILE_ACCESS))>=0) { - H5Pset_fapl_mpiposix(fapl, MPI_COMM_WORLD, TRUE); +#ifdef H5_WANT_H5_V1_4_COMPAT + H5Pset_fapl_mpiposix(fapl, MPI_COMM_WORLD); +#else + H5Pset_fapl_mpiposix(fapl, MPI_COMM_WORLD, TRUE); +#endif /* Initialize the MPI library, if it wasn't already */ if(!h5tools_mpi_init_g) { |