Check if two complex (64 bits) arrays (rank 1) are equal.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(tester_t), | intent(inout) | :: | this |
The tester. |
||
complex(kind=real64), | intent(in), | dimension(:) | :: | c1 |
Value to compare. |
|
complex(kind=real64), | intent(in), | dimension(:) | :: | c2 |
Value to compare. |
subroutine assert_equal_c64_1(this, c1, c2) class(tester_t), intent(inout) :: this !< The tester. complex(real64), dimension(:), intent(in) :: c1 !< Value to compare. complex(real64), dimension(:), intent(in) :: c2 !< Value to compare. this% n_tests = this% n_tests + 1 if ( size(c1) .ne. size(c2) ) then this% n_errors = this% n_errors + 1 else if ( maxval(abs(c1-c2)) > 0 ) then this% n_errors = this% n_errors + 1 end if end if end subroutine assert_equal_c64_1