diff options
Diffstat (limited to 'examples/h5_read.c')
-rw-r--r-- | examples/h5_read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/h5_read.c b/examples/h5_read.c index 99e1801..a7813c0 100644 --- a/examples/h5_read.c +++ b/examples/h5_read.c @@ -48,7 +48,7 @@ for (j = 0; j < NX; j++) { /* * Open the file and the dataset. */ -file = H5Fopen(FILE, H5ACC_DEFAULT, H5C_DEFAULT); +file = H5Fopen(FILE, H5F_ACC_RDONLY, H5C_DEFAULT); dataset = H5Dopen(file, DATASETNAME); /* |