summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/h5_chunk_read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/h5_chunk_read.c b/examples/h5_chunk_read.c
index 40dfeed..681febc 100644
--- a/examples/h5_chunk_read.c
+++ b/examples/h5_chunk_read.c
@@ -48,8 +48,8 @@ dataset = H5Dopen(file, DATASETNAME);
*/
filespace = H5Dget_space(dataset); /* Get filespace handle first. */
-rank = H5Sget_ndims(filespace);
-status_n = H5Sget_dims(filespace, dims, NULL);
+rank = H5Sextent_ndims(filespace);
+status_n = H5Sextent_dims(filespace, dims, NULL);
printf("dataset rank %d, dimensions %d x %d \n", rank, dims[0], dims[1]);
/*