Custom operator for allclose comparison of two real64-valued 3D arrays Uses default relative tolerance of 1e-5 and does not print results
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in), | dimension(:,:,:) | :: | got |
The array of values to be tested |
|
| real(kind=real64), | intent(in), | dimension(:,:,:) | :: | expect |
The array of expected values |
Did the comparison pass?
function allclose_operator_real64_3d(got, expect) result(test_pass) real(kind=real64), intent(in), dimension(:,:,:) :: got !! The array of values to be tested real(kind=real64), intent(in), dimension(:,:,:) :: expect !! The array of expected values logical :: test_pass !! Did the comparison pass? test_pass = allclose_real64_3d(got, expect, "unused", 1.0e-05_real64, .false.) end function allclose_operator_real64_3d