summaryrefslogtreecommitdiffstats
path: root/fortran/test/tH5P_F03.f90
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2014-04-08 00:18:20 (GMT)
committerScot Breitenfeld <brtnfld@hdfgroup.org>2014-04-08 00:18:20 (GMT)
commitff9a10cfdacfd30fc1720b7c82bc28d204b76ce2 (patch)
tree2e7c07b41caace92775d8162012d94e79b4df029 /fortran/test/tH5P_F03.f90
parent67a61ed22f31b9af0ace476b0cc58d7236bb9ac3 (diff)
downloadhdf5-ff9a10cfdacfd30fc1720b7c82bc28d204b76ce2.zip
hdf5-ff9a10cfdacfd30fc1720b7c82bc28d204b76ce2.tar.gz
hdf5-ff9a10cfdacfd30fc1720b7c82bc28d204b76ce2.tar.bz2
[svn-r24984] Added overload operatorZ to compare REALs for tests.
Tested on jam (gfortran, (-r8))
Diffstat (limited to 'fortran/test/tH5P_F03.f90')
-rw-r--r--fortran/test/tH5P_F03.f9017
1 files changed, 2 insertions, 15 deletions
diff --git a/fortran/test/tH5P_F03.f90 b/fortran/test/tH5P_F03.f90
index 9f71a73..af8cad0 100644
--- a/fortran/test/tH5P_F03.f90
+++ b/fortran/test/tH5P_F03.f90
@@ -118,7 +118,6 @@ SUBROUTINE test_create(total_error)
INTEGER :: error
INTEGER(SIZE_T) :: h5off
TYPE(C_PTR) :: f_ptr
- LOGICAL :: differ1, differ2
!/*
! * Create a file.
@@ -205,20 +204,8 @@ 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)
- 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. &
+ IF( .NOT.(rd_c%a .REALEQ. fill_ctype%a) .OR. &
+ .NOT.(rd_c%y .REALEQ. fill_ctype%y) .OR. &
rd_c%x .NE. fill_ctype%x .OR. &
rd_c%z .NE. fill_ctype%z )THEN