diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2000-11-15 22:47:59 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2000-11-15 22:47:59 (GMT) |
commit | b524625fcb78df2050dc81a9110883517499a5cd (patch) | |
tree | da683601c4ea5ad4a4e4e3ac44c118546c148b26 /src/H5Sall.c | |
parent | 418e8ef0ca760d16f66f00782f0f3fb9c0ea1b10 (diff) | |
download | hdf5-b524625fcb78df2050dc81a9110883517499a5cd.zip hdf5-b524625fcb78df2050dc81a9110883517499a5cd.tar.gz hdf5-b524625fcb78df2050dc81a9110883517499a5cd.tar.bz2 |
[svn-r2942] Purpose:
Bug fix
Description:
When performing I/O on the entire dataset for datasets with the maximum
number of dimensions, H5S_MAX_RANK, (32 currently), the dimension
information was getting corrupted internally and causing no data to be
actually written to the file.
Solution:
Changed the internal array sizes from H5S_MAX_RANK to H5O_LAYOUT_NDIMS,
which is one element larger to accomodate the size of the elements
themselves.
Platforms tested:
Solaris 2.7 (arabica)
Diffstat (limited to 'src/H5Sall.c')
-rw-r--r-- | src/H5Sall.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/H5Sall.c b/src/H5Sall.c index f4d75f9..4240271 100644 --- a/src/H5Sall.c +++ b/src/H5Sall.c @@ -564,9 +564,9 @@ H5S_all_read(H5F_t *f, const H5O_layout_t *layout, const H5O_pline_t *pline, hsize_t mem_size,file_size; hssize_t file_off,mem_off; hssize_t count; /* Regular hyperslab count */ - hsize_t size[H5S_MAX_RANK]; - hssize_t file_offset[H5S_MAX_RANK]; - hssize_t mem_offset[H5S_MAX_RANK]; + hsize_t size[H5O_LAYOUT_NDIMS]; + hssize_t file_offset[H5O_LAYOUT_NDIMS]; + hssize_t mem_offset[H5O_LAYOUT_NDIMS]; int i; FUNC_ENTER(H5S_all_read, FAIL); @@ -722,9 +722,9 @@ H5S_all_write(H5F_t *f, const struct H5O_layout_t *layout, hsize_t mem_size,file_size; hssize_t file_off,mem_off; hssize_t count; /* Regular hyperslab count */ - hsize_t size[H5S_MAX_RANK]; - hssize_t file_offset[H5S_MAX_RANK]; - hssize_t mem_offset[H5S_MAX_RANK]; + hsize_t size[H5O_LAYOUT_NDIMS]; + hssize_t file_offset[H5O_LAYOUT_NDIMS]; + hssize_t mem_offset[H5O_LAYOUT_NDIMS]; int i; FUNC_ENTER(H5S_all_write, FAIL); |