summaryrefslogtreecommitdiffstats
path: root/testpar/testpar.h
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2019-08-26 17:26:31 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2019-08-26 17:26:31 (GMT)
commit3bcbce5538eb334948311c5afeaef7c050056dca (patch)
tree6cd5acd99efe330d33fbc775ed88ea40b73ce684 /testpar/testpar.h
parent884ad149e29f7c99487af676f0bbcd88cbf2735f (diff)
downloadhdf5-3bcbce5538eb334948311c5afeaef7c050056dca.zip
hdf5-3bcbce5538eb334948311c5afeaef7c050056dca.tar.gz
hdf5-3bcbce5538eb334948311c5afeaef7c050056dca.tar.bz2
Added H5Pset/get_mpi_params calls and unified them with the MPI-I/O
VFD info in H5FDmpio.c.
Diffstat (limited to 'testpar/testpar.h')
-rw-r--r--testpar/testpar.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/testpar/testpar.h b/testpar/testpar.h
index 84c073f..6b8375d 100644
--- a/testpar/testpar.h
+++ b/testpar/testpar.h
@@ -32,7 +32,7 @@
*/
#define MESG(mesg) \
if (VERBOSE_MED && *mesg != '\0') \
- printf("%s\n", mesg)
+ HDprintf("%s\n", mesg)
/*
* VRFY: Verify if the condition val is true.
@@ -46,16 +46,17 @@
*/
#define VRFY(val, mesg) do { \
if (val) { \
- MESG(mesg); \
- } else { \
- printf("Proc %d: ", mpi_rank); \
- printf("*** Parallel ERROR ***\n"); \
- printf(" VRFY (%s) failed at line %4d in %s\n", \
+ MESG(mesg); \
+ } \
+ else { \
+ HDprintf("Proc %d: ", mpi_rank); \
+ HDprintf("*** Parallel ERROR ***\n"); \
+ HDprintf(" VRFY (%s) failed at line %4d in %s\n", \
mesg, (int)__LINE__, __FILE__); \
++nerrors; \
fflush(stdout); \
if (!VERBOSE_MED) { \
- printf("aborting MPI processes\n"); \
+ HDprintf("aborting MPI processes\n"); \
MPI_Abort(MPI_COMM_WORLD, 1); \
} \
} \