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