Check if a real (32 bits) array (rank 1) is positive.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(tester_t), | intent(inout) | :: | this |
The tester. |
||
real(kind=real32), | intent(in), | dimension(:) | :: | r |
Value to check. |
subroutine assert_positive_r32_1(this, r) class(tester_t), intent(inout) :: this !< The tester. real(real32), dimension(:), intent(in) :: r !< Value to check. this% n_tests = this% n_tests + 1 if ( minval(r) < 0 ) then this% n_errors = this% n_errors + 1 end if end subroutine assert_positive_r32_1