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