diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 1998-02-25 18:48:33 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 1998-02-25 18:48:33 (GMT) |
commit | faa3f5739e0b52d84d119791b6859fe610b76d37 (patch) | |
tree | 6c1849a3516a7bf19a4f33af1868bb55e536c3d3 /examples/h5_extend_write.c | |
parent | 1f96b24ba70e33d1c87dd5773d3ef18d1f46a3c5 (diff) | |
download | hdf5-faa3f5739e0b52d84d119791b6859fe610b76d37.zip hdf5-faa3f5739e0b52d84d119791b6859fe610b76d37.tar.gz hdf5-faa3f5739e0b52d84d119791b6859fe610b76d37.tar.bz2 |
[svn-r296] Switched prefix for dataspaces from H5P to H5S
Diffstat (limited to 'examples/h5_extend_write.c')
-rw-r--r-- | examples/h5_extend_write.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/h5_extend_write.c b/examples/h5_extend_write.c index 69e18ad..1d0438b 100644 --- a/examples/h5_extend_write.c +++ b/examples/h5_extend_write.c @@ -25,7 +25,7 @@ main () size_t dims2[2] = { 7, 1}; /* data2 dimensions */ size_t dims3[2] = { 2, 2}; /* data3 dimensions */ - size_t maxdims[2] = {H5P_UNLIMITED, H5P_UNLIMITED}; + size_t maxdims[2] = {H5S_UNLIMITED, H5S_UNLIMITED}; size_t chunk_dims[2] ={2, 5}; size_t size[2]; int offset[2]; @@ -44,7 +44,7 @@ main () /* * Create the data space with ulimited dimensions. */ -dataspace = H5Pcreate_simple(RANK, dims, maxdims); +dataspace = H5Screate_simple(RANK, dims, maxdims); /* * Create a new file. If file exists its contents will be overwritten. @@ -77,7 +77,7 @@ status = H5Dextend (dataset, size); filespace = H5Dget_space (dataset); offset[0] = 0; offset[1] = 0; -status = H5Pset_hyperslab(filespace, offset, dims1, NULL); +status = H5Sset_hyperslab(filespace, offset, dims1, NULL); /* * Write the data to the hyperslab. @@ -99,12 +99,12 @@ status = H5Dextend (dataset, size); filespace = H5Dget_space (dataset); offset[0] = 3; offset[1] = 0; -status = H5Pset_hyperslab(filespace, offset, dims2, NULL); +status = H5Sset_hyperslab(filespace, offset, dims2, NULL); /* * Define memory space */ -dataspace = H5Pcreate_simple(RANK, dims2, NULL); +dataspace = H5Screate_simple(RANK, dims2, NULL); /* * Write the data to the hyperslab. @@ -126,12 +126,12 @@ status = H5Dextend (dataset, size); filespace = H5Dget_space (dataset); offset[0] = 0; offset[1] = 3; -status = H5Pset_hyperslab(filespace, offset, dims3, NULL); +status = H5Sset_hyperslab(filespace, offset, dims3, NULL); /* * Define memory space. */ -dataspace = H5Pcreate_simple(RANK, dims3, NULL); +dataspace = H5Screate_simple(RANK, dims3, NULL); /* * Write the data to the hyperslab. @@ -157,8 +157,8 @@ status = H5Dwrite(dataset, H5T_NATIVE_INT, dataspace, filespace, * Close/release resources. */ H5Dclose(dataset); -H5Pclose(dataspace); -H5Pclose(filespace); +H5Sclose(dataspace); +H5Sclose(filespace); H5Fclose(file); } |