diff options
Diffstat (limited to 'examples/h5_extend_write.c')
-rw-r--r-- | examples/h5_extend_write.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/h5_extend_write.c b/examples/h5_extend_write.c index 4e605e0..b54cc66 100644 --- a/examples/h5_extend_write.c +++ b/examples/h5_extend_write.c @@ -89,12 +89,12 @@ main (void) */ size[0] = 3; size[1] = 3; - status = H5Dextend (dataset, size); + status = H5Dset_extent(dataset, size); /* * Select a hyperslab. */ - filespace = H5Dget_space (dataset); + filespace = H5Dget_space(dataset); offset[0] = 0; offset[1] = 0; status = H5Sselect_hyperslab(filespace, H5S_SELECT_SET, offset, NULL, @@ -112,12 +112,12 @@ main (void) dims[0] = dims1[0] + dims2[0]; size[0] = dims[0]; size[1] = dims[1]; - status = H5Dextend (dataset, size); + status = H5Dset_extent(dataset, size); /* * Select a hyperslab. */ - filespace = H5Dget_space (dataset); + filespace = H5Dget_space(dataset); offset[0] = 3; offset[1] = 0; status = H5Sselect_hyperslab(filespace, H5S_SELECT_SET, offset, NULL, @@ -140,12 +140,12 @@ main (void) dims[1] = dims1[1] + dims3[1]; size[0] = dims[0]; size[1] = dims[1]; - status = H5Dextend (dataset, size); + status = H5Dset_extent(dataset, size); /* * Select a hyperslab */ - filespace = H5Dget_space (dataset); + filespace = H5Dget_space(dataset); offset[0] = 0; offset[1] = 3; status = H5Sselect_hyperslab(filespace, H5S_SELECT_SET, offset, NULL, |