summaryrefslogtreecommitdiffstats
path: root/fortran/test/tH5A.f90
diff options
context:
space:
mode:
Diffstat (limited to 'fortran/test/tH5A.f90')
-rw-r--r--fortran/test/tH5A.f907
1 files changed, 3 insertions, 4 deletions
diff --git a/fortran/test/tH5A.f90 b/fortran/test/tH5A.f90
index faeb481..59036a5 100644
--- a/fortran/test/tH5A.f90
+++ b/fortran/test/tH5A.f90
@@ -85,8 +85,7 @@
DOUBLE PRECISION, DIMENSION(1) :: attr_double_data = 3.459
REAL, DIMENSION(1) :: attr_real_data = 4.0
INTEGER, DIMENSION(1) :: attr_integer_data = 5
- INTEGER(HSIZE_T), DIMENSION(7) :: data_dims_b
- INTEGER, DIMENSION(7) :: data_dims
+ INTEGER(HSIZE_T), DIMENSION(7) :: data_dims
CHARACTER :: aread_character_data ! variable to put read back Character attr data
@@ -255,8 +254,8 @@
!
! Write the Real attribute data.
!
- data_dims_b(1) = 1
- CALL h5awrite_f(attr4_id, atype4_id, attr_real_data, data_dims_b, error)
+ data_dims(1) = 1
+ CALL h5awrite_f(attr4_id, atype4_id, attr_real_data, data_dims, error)
CALL check("h5awrite_f",error,total_error)
!