summaryrefslogtreecommitdiffstats
path: root/perform/pio_engine.c
diff options
context:
space:
mode:
Diffstat (limited to 'perform/pio_engine.c')
-rw-r--r--perform/pio_engine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perform/pio_engine.c b/perform/pio_engine.c
index 27251c3..cbd77e7 100644
--- a/perform/pio_engine.c
+++ b/perform/pio_engine.c
@@ -1285,7 +1285,7 @@ do_fopen(parameters *param, char *fname, file_descr *fd /*out*/, int flags)
if (flags & (PIO_CREATE | PIO_WRITE)) {
fd->h5fd = H5Fcreate(fname, H5F_ACC_TRUNC, H5P_DEFAULT, acc_tpl);
} else {
- fd->h5fd = H5Fopen(fname, H5P_DEFAULT, acc_tpl);
+ fd->h5fd = H5Fopen(fname, H5F_ACC_RDONLY, acc_tpl);
}
hrc = H5Pclose(acc_tpl);