summaryrefslogtreecommitdiffstats
path: root/fortran/test/tH5P_F03.f90
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2014-04-08 01:00:24 (GMT)
committerScot Breitenfeld <brtnfld@hdfgroup.org>2014-04-08 01:00:24 (GMT)
commitd1f2b1a682213d98db080e91c09d3f95b4f2b3b0 (patch)
tree3f38c808358221ffbe9232ba1c23ebe439bfdb30 /fortran/test/tH5P_F03.f90
parentff9a10cfdacfd30fc1720b7c82bc28d204b76ce2 (diff)
downloadhdf5-d1f2b1a682213d98db080e91c09d3f95b4f2b3b0.zip
hdf5-d1f2b1a682213d98db080e91c09d3f95b4f2b3b0.tar.gz
hdf5-d1f2b1a682213d98db080e91c09d3f95b4f2b3b0.tar.bz2
[svn-r24985] reverted the r24984 update.
Diffstat (limited to 'fortran/test/tH5P_F03.f90')
-rw-r--r--fortran/test/tH5P_F03.f9017
1 files changed, 15 insertions, 2 deletions
diff --git a/fortran/test/tH5P_F03.f90 b/fortran/test/tH5P_F03.f90
index af8cad0..9f71a73 100644
--- a/fortran/test/tH5P_F03.f90
+++ b/fortran/test/tH5P_F03.f90
@@ -118,6 +118,7 @@ SUBROUTINE test_create(total_error)
INTEGER :: error
INTEGER(SIZE_T) :: h5off
TYPE(C_PTR) :: f_ptr
+ LOGICAL :: differ1, differ2
!/*
! * Create a file.
@@ -204,8 +205,20 @@ SUBROUTINE test_create(total_error)
CALL H5Pget_fill_value_f(dcpl, comp_type_id, f_ptr, error)
CALL check("H5Pget_fill_value_f", error, total_error)
- IF( .NOT.(rd_c%a .REALEQ. fill_ctype%a) .OR. &
- .NOT.(rd_c%y .REALEQ. fill_ctype%y) .OR. &
+ differ1 = .FALSE.
+ differ2 = .FALSE.
+ if(abs(rd_c%a - fill_ctype%a) .ge. 1.D-08) then
+ differ1 = .TRUE.
+ endif
+ ! This is a workaround; needs to be fixed
+ !CALL compare_floats(rd_c%a, fill_ctype%a, differ1)
+ if(abs(rd_c%y - fill_ctype%y) .ge. 1.D-08) then
+ differ2 = .TRUE.
+ endif
+ ! This is a workaround; needs to be fixed
+ !CALL compare_floats(rd_c%y, fill_ctype%y, differ2)
+ IF( differ1 .OR. &
+ differ2 .OR. &
rd_c%x .NE. fill_ctype%x .OR. &
rd_c%z .NE. fill_ctype%z )THEN