From 4e36f49a2d47091eecb163710c75f1ac8e73784e Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Mon, 19 May 2003 14:27:41 -0500 Subject: [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: --- test/h5test.c | 10 ++++++++-- 1 file 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 -- cgit v0.12