diff options
author | Albert Cheng <acheng@hdfgroup.org> | 1999-04-30 20:46:45 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 1999-04-30 20:46:45 (GMT) |
commit | 35747cccd74834941a4491b60c623e321f006a2a (patch) | |
tree | 008e3051c72bfb0fe54a1f08bef1ecae6e8c9a7b /doc/html | |
parent | 7d0a135c73a240a8e91f8187846d45a50ad4459f (diff) | |
download | hdf5-35747cccd74834941a4491b60c623e321f006a2a.zip hdf5-35747cccd74834941a4491b60c623e321f006a2a.tar.gz hdf5-35747cccd74834941a4491b60c623e321f006a2a.tar.bz2 |
[svn-r1242] Updated the syntax of the H5Sselect_hyperslab calls.
(This file may have been replaced by multiple files already.)
Diffstat (limited to 'doc/html')
-rw-r--r-- | doc/html/ph5example.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/doc/html/ph5example.c b/doc/html/ph5example.c index 8699bc9..f2e3085 100644 --- a/doc/html/ph5example.c +++ b/doc/html/ph5example.c @@ -1,4 +1,3 @@ - /* * Example of using the parallel HDF5 library to access datasets. * @@ -289,7 +288,8 @@ if (verbose) file_dataspace = H5Dget_space (dataset1); assert(file_dataspace != FAIL); MESG("H5Dget_space succeed"); - ret=H5Sset_hyperslab(file_dataspace, start, count, stride); + ret=H5Sselect_hyperslab(file_dataspace, H5S_SELECT_SET, start, stride, + count, NULL); assert(ret != FAIL); MESG("H5Sset_hyperslab succeed"); @@ -399,7 +399,8 @@ if (verbose) /* create a file dataspace independently */ file_dataspace = H5Dget_space (dataset1); assert(file_dataspace != FAIL); - ret=H5Sset_hyperslab(file_dataspace, start, count, stride); + ret=H5Sselect_hyperslab(file_dataspace, H5S_SELECT_SET, start, stride, + count, NULL); assert(ret != FAIL); /* create a memory dataspace independently */ @@ -537,7 +538,8 @@ if (verbose) file_dataspace = H5Dget_space (dataset1); assert(file_dataspace != FAIL); MESG("H5Dget_space succeed"); - ret=H5Sset_hyperslab(file_dataspace, start, count, stride); + ret=H5Sselect_hyperslab(file_dataspace, H5S_SELECT_SET, start, stride, + count, NULL); assert(ret != FAIL); MESG("H5Sset_hyperslab succeed"); @@ -591,7 +593,8 @@ if (verbose) file_dataspace = H5Dget_space (dataset1); assert(file_dataspace != FAIL); MESG("H5Dget_space succeed"); - ret=H5Sset_hyperslab(file_dataspace, start, count, stride); + ret=H5Sselect_hyperslab(file_dataspace, H5S_SELECT_SET, start, stride, + count, NULL); assert(ret != FAIL); MESG("H5Sset_hyperslab succeed"); @@ -732,7 +735,8 @@ if (verbose) file_dataspace = H5Dget_space (dataset1); assert(file_dataspace != FAIL); MESG("H5Dget_space succeed"); - ret=H5Sset_hyperslab(file_dataspace, start, count, stride); + ret=H5Sselect_hyperslab(file_dataspace, H5S_SELECT_SET, start, stride, + count, NULL); assert(ret != FAIL); MESG("H5Sset_hyperslab succeed"); @@ -782,7 +786,8 @@ if (verbose) file_dataspace = H5Dget_space (dataset1); assert(file_dataspace != FAIL); MESG("H5Dget_space succeed"); - ret=H5Sset_hyperslab(file_dataspace, start, count, stride); + ret=H5Sselect_hyperslab(file_dataspace, H5S_SELECT_SET, start, stride, + count, NULL); assert(ret != FAIL); MESG("H5Sset_hyperslab succeed"); |