summaryrefslogtreecommitdiffstats
path: root/fortran/test/tH5A.f90
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2014-04-07 17:05:22 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2014-04-07 17:05:22 (GMT)
commit849177c7b6810d2fc4c16092fc3e37a3fee12075 (patch)
tree009fea2e69f97ffea9ec5f7458675df78fbee0d4 /fortran/test/tH5A.f90
parentf6a04cded9e3ec9d2c672215c8ab7fffdec0a1ea (diff)
downloadhdf5-849177c7b6810d2fc4c16092fc3e37a3fee12075.zip
hdf5-849177c7b6810d2fc4c16092fc3e37a3fee12075.tar.gz
hdf5-849177c7b6810d2fc4c16092fc3e37a3fee12075.tar.bz2
[svn-r24979] Maintenance: Addressed DT failures on emu in 64-bit mode and on macs, linux, powerpc
for non-standard sizes of reals. Platforms tested: jam, ostrich, platypus, kite, quail, emu
Diffstat (limited to 'fortran/test/tH5A.f90')
-rw-r--r--fortran/test/tH5A.f909
1 files changed, 7 insertions, 2 deletions
diff --git a/fortran/test/tH5A.f90 b/fortran/test/tH5A.f90
index f5f4525..b43707c 100644
--- a/fortran/test/tH5A.f90
+++ b/fortran/test/tH5A.f90
@@ -41,7 +41,7 @@ CONTAINS
USE TH5_MISC
IMPLICIT NONE
LOGICAL, INTENT(IN) :: cleanup
- INTEGER, INTENT(OUT) :: total_error
+ INTEGER, INTENT(INOUT) :: total_error
CHARACTER(LEN=5), PARAMETER :: filename = "atest" !File name
CHARACTER(LEN=80) :: fix_filename
@@ -519,7 +519,12 @@ CONTAINS
data_dims(1) = 1
CALL h5aread_f(attr3_id, H5T_NATIVE_DOUBLE, aread_double_data, data_dims, error)
CALL check("h5aread_f",error,total_error)
- CALL compare_floats(aread_double_data(1), 3.459D0, differ)
+ differ = .FALSE.
+ if(abs(aread_double_data(1)- 3.459D0) .ge. 1.D-08) then
+ differ = .TRUE.
+ endif
+ ! This is a temporary fix
+ !CALL compare_floats(aread_double_data(1), 3.459D0, differ)
IF (differ) THEN
WRITE(*,*) "Read back double attrbute is wrong", aread_double_data(1)
total_error = total_error + 1