summaryrefslogtreecommitdiffstats
path: root/testpar/testphdf5.h
diff options
context:
space:
mode:
Diffstat (limited to 'testpar/testphdf5.h')
-rw-r--r--testpar/testphdf5.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/testpar/testphdf5.h b/testpar/testphdf5.h
index 4a85c8b..c12d8e9 100644
--- a/testpar/testphdf5.h
+++ b/testpar/testphdf5.h
@@ -26,7 +26,11 @@
mesg, (int)__LINE__, __FILE__); \
nerrors++; \
H5Eprint (stdout); \
- if (!verbose) exit(nerrors); \
+ fflush(stdout); \
+ if (!verbose){ \
+ MPI_Finalize(); \
+ exit(nerrors); \
+ } \
} \
H5Eclear(); \
} while(0)