From 078a51d60d85f7b41da69c9127ae5a8b60fbeace Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Fri, 5 Jan 2018 12:16:15 +0100 Subject: [PATCH] examples/H5/openclose.c: explizit set verbosity of output --- examples/H5/openclose.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/examples/H5/openclose.c b/examples/H5/openclose.c index 78ff99a..eb31781 100644 --- a/examples/H5/openclose.c +++ b/examples/H5/openclose.c @@ -1,5 +1,5 @@ /* - Copyright (c) 2006-2015, The Regents of the University of California, + Copyright (c) 2006-2018, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy) and the Paul Scherrer Institut (Switzerland). All rights reserved. @@ -11,6 +11,14 @@ #include "examples.h" +/* + Use H5_DEBUG_ALL to get full debug output +*/ +#if !defined(VERBOSITY) +#define VERBOSITY H5_VERBOSE_ERROR +/* #undef VERBOSITY H5_DEBUG_ALL */ +#endif + int main ( int argc, @@ -19,7 +27,7 @@ main ( MPI_Comm comm = MPI_COMM_WORLD; MPI_Init (&argc, &argv); - + H5SetVerbosityLevel (VERBOSITY); h5_prop_t prop = H5CreateFileProp (); H5SetPropFileMPIOCollective (prop, &comm); h5_file_t f = H5OpenFile ("testfile.h5", H5_O_WRONLY, prop);