summaryrefslogtreecommitdiffstats
path: root/fortran/test/tH5S.f90
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2001-06-21 14:53:42 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2001-06-21 14:53:42 (GMT)
commitef31e2929dc496a32515a8c11cef8ecce6c746e2 (patch)
tree25d8a46040f85f54948db95a3cf3e493c51d9a5d /fortran/test/tH5S.f90
parentaa08bf12452437589712812d5a8c21fe8a0ed401 (diff)
downloadhdf5-ef31e2929dc496a32515a8c11cef8ecce6c746e2.zip
hdf5-ef31e2929dc496a32515a8c11cef8ecce6c746e2.tar.gz
hdf5-ef31e2929dc496a32515a8c11cef8ecce6c746e2.tar.bz2
[svn-r4026]
Purpose: Windows port Description: Modified code to reflect the changes in the read/write APIs. Platforms tested: Windows 98, Linux, DEC UNIX
Diffstat (limited to 'fortran/test/tH5S.f90')
-rw-r--r--fortran/test/tH5S.f9017
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)
!