summaryrefslogtreecommitdiffstats
path: root/testpar/testpar.h
diff options
context:
space:
mode:
authorkmu <kmu@hdfgroup.org>2020-01-27 18:57:33 (GMT)
committerkmu <kmu@hdfgroup.org>2020-01-27 18:57:33 (GMT)
commitcd2f9543144c7d32ea576c0cc795160eb1bafdb0 (patch)
tree06d2ff598e0945d27492b9eee1dc9c84d6f6a8e3 /testpar/testpar.h
parent54610a7c47598bcef057e2c26fb8390a9800a03d (diff)
downloadhdf5-cd2f9543144c7d32ea576c0cc795160eb1bafdb0.zip
hdf5-cd2f9543144c7d32ea576c0cc795160eb1bafdb0.tar.gz
hdf5-cd2f9543144c7d32ea576c0cc795160eb1bafdb0.tar.bz2
pick up from Dave's fix
Diffstat (limited to 'testpar/testpar.h')
-rw-r--r--testpar/testpar.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/testpar/testpar.h b/testpar/testpar.h
index 86677d1..e3d68e0 100644
--- a/testpar/testpar.h
+++ b/testpar/testpar.h
@@ -44,12 +44,12 @@
* This will allow program to continue and can be used for debugging.
* (The "do {...} while(0)" is to group all the statements as one unit.)
*/
-#define VRFY(val, mesg) do { \
+#define VRFY_IMPL(val, mesg, rankvar) do { \
if (val) { \
MESG(mesg); \
} \
else { \
- HDprintf("Proc %d: ", mpi_rank); \
+ HDprintf("Proc %d: ", rankvar); \
HDprintf("*** Parallel ERROR ***\n"); \
HDprintf(" VRFY (%s) failed at line %4d in %s\n", \
mesg, (int)__LINE__, __FILE__); \
@@ -62,6 +62,9 @@
} \
} while(0)
+#define VRFY_G(val, mesg) VRFY_IMPL(val, mesg, mpi_rank_g)
+#define VRFY(val, mesg) VRFY_IMPL(val, mesg, mpi_rank)
+
/*
* Checking for information purpose.
* If val is false, print mesg; else nothing.