summaryrefslogtreecommitdiffstats
path: root/test/h5test.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2003-05-19 19:27:41 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2003-05-19 19:27:41 (GMT)
commit4e36f49a2d47091eecb163710c75f1ac8e73784e (patch)
treef91b9586ca1a5ba1c3c19261c5386315b2434dca /test/h5test.c
parent2f8c23b90390201c1f694d65b854163251dd1452 (diff)
downloadhdf5-4e36f49a2d47091eecb163710c75f1ac8e73784e.zip
hdf5-4e36f49a2d47091eecb163710c75f1ac8e73784e.tar.gz
hdf5-4e36f49a2d47091eecb163710c75f1ac8e73784e.tar.bz2
[svn-r6901] Purpose:
Small feature. Description: Change the wording for the use of HDF5_PARAPREFIX from Remark to hint. Also made process 0 be the only one printing the hint rather all processes duplicating the same hints. Platforms tested: Copper, both serial and parallel. Did not do h5commit test since this is very localized and the above tests covered both cases already. Misc. update:
Diffstat (limited to 'test/h5test.c')
-rw-r--r--test/h5test.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/h5test.c b/test/h5test.c
index bb7853c..a694582 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -290,24 +290,30 @@ h5_fixname(const char *base_name, hid_t fapl, char *fullname, size_t size)
/* Use different ones depending on parallel or serial driver used. */
if (H5P_DEFAULT != fapl && H5FD_MPIO == driver){
+#ifdef H5_HAVE_PARALLEL
/* For parallel:
* First use command line option, then the environment variable,
* then try the constant
*/
prefix = (paraprefix ? paraprefix : getenv("HDF5_PARAPREFIX"));
if (!prefix && !HDF5_PARAPREFIX_explained){
- printf("*** Remark ***\n"
+ /* print hint by process 0 once. */
+ int mpi_rank;
+ MPI_Comm_rank(MPI_COMM_WORLD, &mpi_rank);
+ if (mpi_rank == 0)
+ printf("*** Hint ***\n"
"You can use environment variable HDF5_PARAPREFIX to "
"run parallel test files in a\n"
"different directory or to add file type prefix. E.g.,\n"
" HDF5_PARAPREFIX=pfs:/PFS/user/me\n"
" export HDF5_PARAPREFIX\n"
- "*** End of Remark ***\n");
+ "*** End of Hint ***\n");
HDF5_PARAPREFIX_explained++;
#ifdef HDF5_PARAPREFIX
prefix = HDF5_PARAPREFIX;
#endif /* HDF5_PARAPREFIX */
}
+#endif
}else{
/* For serial:
* First use the environment variable, then try the constant