mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-05 15:42:32 +08:00
pick up from Dave's fix
This commit is contained in:
parent
54610a7c47
commit
cd2f954314
File diff suppressed because it is too large
Load Diff
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user