summaryrefslogtreecommitdiffstats
path: root/fortran/test/tH5D.f90
diff options
context:
space:
mode:
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