From ca5f4abc7c3e8133ef620da0614bc64943a5b053 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Fri, 15 Nov 2013 16:46:36 +0100 Subject: [PATCH] comment for zero-sized selections reviewed --- examples/H5Part/read_setview.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/H5Part/read_setview.c b/examples/H5Part/read_setview.c index 013a93b..cf10472 100644 --- a/examples/H5Part/read_setview.c +++ b/examples/H5Part/read_setview.c @@ -51,8 +51,8 @@ main ( else start += remainder; - // Note: if npartices is 0 end = start - 1 - // this forces the selection of zero particles! + // Note: setting end = start - 1 forces the + // selection of zero particles! h5_int64_t end = start + nparticles - 1; printf ("[proc %d]: set view to [%lld..%lld]\n", comm_rank, start, end);