diff options
Diffstat (limited to 'tools/lib/h5diff_util.c')
-rw-r--r-- | tools/lib/h5diff_util.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/lib/h5diff_util.c b/tools/lib/h5diff_util.c index d4b6437..c29b085 100644 --- a/tools/lib/h5diff_util.c +++ b/tools/lib/h5diff_util.c @@ -17,10 +17,12 @@ #include "H5private.h" /* global variables */ -int g_nTasks; +int g_nTasks = 1; +unsigned char g_Parallel = 0; /*0 for serial, 1 for parallel */ char outBuff[OUTBUFF_SIZE]; unsigned int outBuffOffset; + /*------------------------------------------------------------------------- * Function: parallel_print * @@ -38,7 +40,7 @@ void parallel_print(const char* format, ...) va_start(ap, format); - if(g_nTasks < 2) + if(!g_Parallel) vprintf(format, ap); else outBuffOffset += HDvsnprintf(outBuff+outBuffOffset, OUTBUFF_SIZE-outBuffOffset, format, ap); |