diff options
author | Elena Pourmal <epourmal@hdfgroup.org> | 2001-04-27 03:50:22 (GMT) |
---|---|---|
committer | Elena Pourmal <epourmal@hdfgroup.org> | 2001-04-27 03:50:22 (GMT) |
commit | 9aba4e88c26d98aafaf231163e949b9a53aa9561 (patch) | |
tree | 56eb7cef411650b40c4f57c58776620a1ddf2b67 /fortran/test/tH5S.f90 | |
parent | 6182da802691e5702681faf509ac151fe652dd51 (diff) | |
download | hdf5-9aba4e88c26d98aafaf231163e949b9a53aa9561.zip hdf5-9aba4e88c26d98aafaf231163e949b9a53aa9561.tar.gz hdf5-9aba4e88c26d98aafaf231163e949b9a53aa9561.tar.bz2 |
[svn-r3861]
Purpose:
Code maintenance
Description:
read/write APIs have been changed.
Solution:
Made necessary changes to the tests.
Platforms tested:
Windows 98, Linux, Solaris 2.7, O2K, T3E
Diffstat (limited to 'fortran/test/tH5S.f90')
-rw-r--r-- | fortran/test/tH5S.f90 | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/fortran/test/tH5S.f90 b/fortran/test/tH5S.f90 index 7d64ada..c20c445 100644 --- a/fortran/test/tH5S.f90 +++ b/fortran/test/tH5S.f90 @@ -47,6 +47,7 @@ LOGICAL :: flag !flag to test datyspace is simple or not INTEGER :: i, j !general purpose integers + INTEGER, DIMENSION(7) :: data_dims ! ! Initialize the dset_data array. @@ -168,16 +169,22 @@ ! ! Write the datasets. ! - CALL h5dwrite_f(dset1_id, H5T_NATIVE_INTEGER, data1_in, error) + data_dims(1) = 4 + data_dims(2) = 6 + CALL h5dwrite_f(dset1_id, H5T_NATIVE_INTEGER, data1_in, data_dims, error) CALL check("h5dwrite_f", error, total_error) - CALL h5dwrite_f(dset2_id, H5T_NATIVE_INTEGER, data2_in, error) + data_dims(1) = 6 + data_dims(2) = 6 + CALL h5dwrite_f(dset2_id, H5T_NATIVE_INTEGER, data2_in, data_dims, error) CALL check("h5dwrite_f", error, total_error) ! ! Read the first dataset. ! - CALL h5dread_f(dset1_id, H5T_NATIVE_INTEGER, data1_out, error) + data_dims(1) = 4 + data_dims(2) = 6 + CALL h5dread_f(dset1_id, H5T_NATIVE_INTEGER, data1_out, data_dims, error) CALL check("h5dread_f", error, total_error) ! @@ -196,7 +203,9 @@ ! ! Read the second dataset. ! - CALL h5dread_f(dset2_id, H5T_NATIVE_INTEGER, data2_out, error) + data_dims(1) = 6 + data_dims(2) = 6 + CALL h5dread_f(dset2_id, H5T_NATIVE_INTEGER, data2_out, data_dims, error) CALL check("h5dread_f", error, total_error) ! |