summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRobert Kim Yates <rkyates@llnl.gov>1998-09-18 23:09:33 (GMT)
committerRobert Kim Yates <rkyates@llnl.gov>1998-09-18 23:09:33 (GMT)
commit1d134c4d3fcb6942a77a75d150a63d9bed33ed61 (patch)
treee5f5087c3c7219523c150e0b898ef2d2d2172664 /src
parent8718c53e6b8ca3d64b2e129a0b4401e124aef116 (diff)
downloadhdf5-1d134c4d3fcb6942a77a75d150a63d9bed33ed61.zip
hdf5-1d134c4d3fcb6942a77a75d150a63d9bed33ed61.tar.gz
hdf5-1d134c4d3fcb6942a77a75d150a63d9bed33ed61.tar.bz2
[svn-r707] Made correction to reading zeroes at end of file, in H5F_mpio_read.
Diffstat (limited to 'src')
-rw-r--r--src/H5Fmpio.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/H5Fmpio.c b/src/H5Fmpio.c
index e99aa59..8ca50d8 100644
--- a/src/H5Fmpio.c
+++ b/src/H5Fmpio.c
@@ -612,16 +612,14 @@ H5F_mpio_read(H5F_low_t *lf, H5F_access_t *access_parms,
"MPI_Get_count returned invalid count" );
}
- /* beyond end of file, pretend we're reading zeroes */
- if (use_types_this_time) {
- /* BUG rky 980816 Not implemented yet. How to do it??? */
- HRETURN_ERROR(H5E_IO, H5E_UNSUPPORTED, FAIL,
+ /* This gives us zeroes beyond end of physical MPI file.
+ * What about reading past logical end of HDF5 file??? */
+ if ((n=(size_i-bytes_read)) > 0) {
+ if (use_types_this_time) {
+ /* INCOMPLETE rky 980918 Not implemented yet. What to do??? */
+ HRETURN_ERROR(H5E_IO, H5E_UNSUPPORTED, FAIL,
"haven't implemented reading zeroes beyond end of file" );
- } else {
- /* BUG??? rky 980816
- * This gives us zeroes beyond end of physical MPI file.
- * What about reading past logical end of HDF5 file??? */
- if ((n=(size_i-bytes_read)) > 0) {
+ } else {
HDmemset( buf+bytes_read, 0, (size_t)n );
}
}