From 28fc1181180b1663e6ae636ac1ba78722d63908d Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Fri, 11 Mar 2016 17:53:30 +0100 Subject: [PATCH] src/h5core/h5b_model.c: - h5b_3d_has_view() now returns H5_SUCCESS or H5_NOK --- src/h5core/h5b_model.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/h5core/h5b_model.c b/src/h5core/h5b_model.c index 1e32e3a..c042710 100644 --- a/src/h5core/h5b_model.c +++ b/src/h5core/h5b_model.c @@ -24,7 +24,9 @@ /*! \note - A partition must not be part of another partition. + There are some restrictions to views: + + A partition cannot be inside another partition. A partition must not divide another partition into two pieces. @@ -543,7 +545,7 @@ h5_int64_t h5b_3d_has_view ( const h5_file_t fh /*!< IN: File handle */ ) { - return ((h5_file_p)fh)->b->have_layout; + return ( ((h5_file_p)fh)->b->have_layout > 0 ? H5_SUCCESS : H5_NOK ); } h5_err_t