Changeset 3785 for palm/trunk/UTIL/inifor/tests/util.f90
- Timestamp:
- Mar 6, 2019 10:41:14 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/UTIL/inifor/tests/util.f90
r3183 r3785 15 15 ! PALM. If not, see <http://www.gnu.org/licenses/>. 16 16 ! 17 ! Copyright 2017-201 8Leibniz Universitaet Hannover18 ! Copyright 2017-201 8Deutscher Wetterdienst Offenbach17 ! Copyright 2017-2019 Leibniz Universitaet Hannover 18 ! Copyright 2017-2019 Deutscher Wetterdienst Offenbach 19 19 !------------------------------------------------------------------------------! 20 20 ! … … 71 71 msg = 'failed.' 72 72 label = ' [XX]' 73 END 73 ENDIF 74 74 75 75 PRINT '(/A, A, A, A)', TRIM(label) // " Test '", TRIM(title), "' ", TRIM(msg) … … 87 87 ELSE 88 88 assert_equal = assert(a, b, 'eq') 89 END 89 ENDIF 90 90 91 91 IF (assert_equal .eqv. .TRUE.) THEN … … 94 94 PRINT *, "Equality assertion for ", msg, " failed. Maximum error is ", & 95 95 MAXVAL( ABS( a - b)) 96 END 96 ENDIF 97 97 98 98 END FUNCTION assert_equal … … 125 125 mag = MAX( ABS(a(i)), ABS(b(i)) ) 126 126 assert = assert .AND. (diff < mag * max_rel_diff ) 127 END 128 END 127 ENDDO 128 ENDIF 129 129 130 130 CASE DEFAULT
Note: See TracChangeset
for help on using the changeset viewer.