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