diff options
author | Elena Pourmal <epourmal@hdfgroup.org> | 2001-04-27 03:52:24 (GMT) |
---|---|---|
committer | Elena Pourmal <epourmal@hdfgroup.org> | 2001-04-27 03:52:24 (GMT) |
commit | fef182fd966c8c113a5bab02f19afca4c91f0ba5 (patch) | |
tree | 952bcd243d030ea9fc63bf6d457754abdbbea1c0 /fortran/examples/rwdsetexample.f90 | |
parent | 9aba4e88c26d98aafaf231163e949b9a53aa9561 (diff) | |
download | hdf5-fef182fd966c8c113a5bab02f19afca4c91f0ba5.zip hdf5-fef182fd966c8c113a5bab02f19afca4c91f0ba5.tar.gz hdf5-fef182fd966c8c113a5bab02f19afca4c91f0ba5.tar.bz2 |
[svn-r3862]
Purpose:
Codemaintenance
Description:
read/write APIs have been changed.
Solution:
Made necessary changes to the source code.
Platforms tested:
Linux, Solaris 2.7, O2K, T3E
Diffstat (limited to 'fortran/examples/rwdsetexample.f90')
-rw-r--r-- | fortran/examples/rwdsetexample.f90 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fortran/examples/rwdsetexample.f90 b/fortran/examples/rwdsetexample.f90 index 3bc0ecb..b3cc424 100644 --- a/fortran/examples/rwdsetexample.f90 +++ b/fortran/examples/rwdsetexample.f90 @@ -22,6 +22,7 @@ INTEGER :: i, j INTEGER, DIMENSION(4,6) :: dset_data, data_out ! Data buffers + INTEGER, DIMENSION(7) :: data_dims ! ! Initialize the dset_data array. @@ -50,12 +51,14 @@ ! ! Write the dataset. ! - CALL h5dwrite_f(dset_id, H5T_NATIVE_INTEGER, dset_data, error) + data_dims(1) = 4 + data_dims(2) = 6 + CALL h5dwrite_f(dset_id, H5T_NATIVE_INTEGER, dset_data, data_dims, error) ! ! Read the dataset. ! - CALL h5dread_f(dset_id, H5T_NATIVE_INTEGER, data_out, error) + CALL h5dread_f(dset_id, H5T_NATIVE_INTEGER, data_out, data_dims, error) ! ! Close the dataset. |