From aaeca8b6b783416766b7a43324cb6d811ef43c9f Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Wed, 22 Jun 2016 13:47:53 +0200 Subject: [PATCH] examples/H5/read_file_attribs.c: - call MPI_Init() before any H5hut functions --- examples/H5/read_file_attribs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/H5/read_file_attribs.c b/examples/H5/read_file_attribs.c index 6c39034..d1f8f16 100644 --- a/examples/H5/read_file_attribs.c +++ b/examples/H5/read_file_attribs.c @@ -1,5 +1,5 @@ /* - Copyright (c) 2006-2015, The Regents of the University of California, + Copyright (c) 2006-2016, 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. @@ -23,10 +23,11 @@ main ( int argc, char** argv ) { + MPI_Init (&argc, &argv); H5AbortOnError (); H5SetVerbosityLevel (VERBOSITY); + H5SetDebugMask (H5_DEBUG_ALL); - MPI_Init (&argc, &argv); // if file properties is set to default, MPI_COMM_WORLD will be used h5_file_t f = H5OpenFile (FNAME, H5_O_RDONLY, H5_PROP_DEFAULT);