diff options
Diffstat (limited to 'perform/pio_engine.c')
-rw-r--r-- | perform/pio_engine.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/perform/pio_engine.c b/perform/pio_engine.c index be94cc7..23c3edd 100644 --- a/perform/pio_engine.c +++ b/perform/pio_engine.c @@ -1667,12 +1667,12 @@ do_read(results *res, file_descr *fd, parameters *parms, long ndsets, break; } /* end switch */ - for (ndset = 1; ndset <= ndsets; ++ndset) { + for(ndset = 1; ndset <= ndsets; ++ndset) { /* Calculate dataset offset within a file */ /* create dataset */ - switch (parms->io_type) { + switch(parms->io_type) { case POSIXIO: case MPIO: /* both posix and mpi io just need dataset offset in file*/ @@ -1681,12 +1681,11 @@ do_read(results *res, file_descr *fd, parameters *parms, long ndsets, case PHDF5: sprintf(dname, "Dataset_%ld", ndset); - h5ds_id = H5Dopen(fd->h5fd, dname); - if (h5ds_id < 0) { + h5ds_id = H5Dopen2(fd->h5fd, dname, H5P_DEFAULT); + if(h5ds_id < 0) { fprintf(stderr, "HDF5 Dataset open failed\n"); GOTOERROR(FAIL); } - break; } |