diff options
author | Elena Pourmal <epourmal@hdfgroup.org> | 1998-02-10 15:16:05 (GMT) |
---|---|---|
committer | Elena Pourmal <epourmal@hdfgroup.org> | 1998-02-10 15:16:05 (GMT) |
commit | 32029aa6484842cd134b206bf5d4477f226298f4 (patch) | |
tree | fcedd656c93128635fb49b4c0ea2f2c13030af8f /examples | |
parent | ef4270b53003664119e318ad473a75716d5d570e (diff) | |
download | hdf5-32029aa6484842cd134b206bf5d4477f226298f4.zip hdf5-32029aa6484842cd134b206bf5d4477f226298f4.tar.gz hdf5-32029aa6484842cd134b206bf5d4477f226298f4.tar.bz2 |
[svn-r235] Comments have been added.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/h5_extend_write.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/examples/h5_extend_write.c b/examples/h5_extend_write.c index fca6ebc..60521cd 100644 --- a/examples/h5_extend_write.c +++ b/examples/h5_extend_write.c @@ -86,7 +86,7 @@ status = H5Dwrite(dataset, H5T_NATIVE_INT, dataspace, filespace, H5C_DEFAULT, data1); /* - * Extend the dataset. Dataset becomes 7 x 3. + * Extend the dataset. Dataset becomes 10 x 3. */ dims[0] = dims1[0] + dims2[0]; size[0] = dims[0]; @@ -113,7 +113,7 @@ status = H5Dwrite(dataset, H5T_NATIVE_INT, dataspace, filespace, H5C_DEFAULT, data2); /* - * Extend the dataset. Dataset becomes 7 x 5. + * Extend the dataset. Dataset becomes 10 x 5. */ dims[1] = dims1[1] + dims3[1]; size[0] = dims[0]; @@ -140,6 +140,20 @@ status = H5Dwrite(dataset, H5T_NATIVE_INT, dataspace, filespace, H5C_DEFAULT, data3); /* + * Resulting dataset + * + 3 3 3 2 2 + 3 3 3 2 2 + 3 3 3 0 0 + 2 0 0 0 0 + 2 0 0 0 0 + 2 0 0 0 0 + 2 0 0 0 0 + 2 0 0 0 0 + 2 0 0 0 0 + 2 0 0 0 0 + */ +/* * Close/release resources. */ H5Dclose(dataset); |