summaryrefslogtreecommitdiffstats
path: root/examples/h5_chunk_read.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/h5_chunk_read.c')
-rw-r--r--examples/h5_chunk_read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/h5_chunk_read.c b/examples/h5_chunk_read.c
index fb018f3..98b0bb4 100644
--- a/examples/h5_chunk_read.c
+++ b/examples/h5_chunk_read.c
@@ -55,7 +55,7 @@ main (void)
* Open the file and the dataset.
*/
file = H5Fopen(H5FILE_NAME, H5F_ACC_RDONLY, H5P_DEFAULT);
- dataset = H5Dopen(file, DATASETNAME);
+ dataset = H5Dopen2(file, DATASETNAME, H5P_DEFAULT);
/*
* Get dataset rank and dimension.