summaryrefslogtreecommitdiffstats
path: root/fortran/test/tH5D.f90
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2004-04-15 21:59:05 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2004-04-15 21:59:05 (GMT)
commit508b06e28609af97be50591b49066381957e9c4e (patch)
treecf889684fc36977ce9df2b9e3310b9372c26c085 /fortran/test/tH5D.f90
parentda3f980be5516deea598cb1a11f79ef1c20c9257 (diff)
downloadhdf5-508b06e28609af97be50591b49066381957e9c4e.zip
hdf5-508b06e28609af97be50591b49066381957e9c4e.tar.gz
hdf5-508b06e28609af97be50591b49066381957e9c4e.tar.bz2
[svn-r8357]
Purpose: Maintenance Description: Fortran functions h5dwrite/read_f and h5awrite/read_f were overloaded with the dims parameter being of type INTEGER. It was a design flaw. dims should be of type INTEGER(HSIZE_T). Overloading was done to assure backward compatibility of 1.4.* branch with hdf5 1.2.* branch. We promised to remove the old function with INTEGER dims in 1.6.0. It was removed from the documentation but was not removed from the source code. Solution: Finally cleaned up the code. Platforms tested: Windows 2000 with DEC Fortran, LInux with Intel Fortran, Solaris 2.7 32/64-bit mode. Misc. update:
Diffstat (limited to 'fortran/test/tH5D.f90')
-rw-r--r--fortran/test/tH5D.f9011
1 files changed, 5 insertions, 6 deletions
diff --git a/fortran/test/tH5D.f90 b/fortran/test/tH5D.f90
index 6567f23..d71e61f 100644
--- a/fortran/test/tH5D.f90
+++ b/fortran/test/tH5D.f90
@@ -45,8 +45,7 @@
INTEGER :: error ! Error flag
INTEGER :: i, j !general purpose integers
- INTEGER(HSIZE_T), DIMENSION(7) :: data_dims_b
- INTEGER, DIMENSION(7) :: data_dims
+ INTEGER(HSIZE_T), DIMENSION(2) :: data_dims
!
! Initialize the dset_data array.
@@ -87,9 +86,9 @@
!
! Write the dataset.
!
- data_dims_b(1) = 4
- data_dims_b(2) = 6
- CALL h5dwrite_f(dset_id, H5T_NATIVE_INTEGER, dset_data, data_dims_b, error)
+ data_dims(1) = 4
+ data_dims(2) = 6
+ CALL h5dwrite_f(dset_id, H5T_NATIVE_INTEGER, dset_data, data_dims, error)
CALL check("h5dwrite_f", error, total_error)
@@ -254,7 +253,7 @@
!
INTEGER(HSIZE_T), DIMENSION(2) :: dimsr, maxdimsr
INTEGER :: rankr
- INTEGER, DIMENSION(7) :: data_dims
+ INTEGER(HSIZE_T), DIMENSION(2) :: data_dims
!
!data initialization