Utility function used by assert.fpp's assert
macro.
If cond is false, log an error described by cond_str, file and line, terminating the program.
Note
Do not use this subroutine directly, rather use
the assert
macro from assert.fpp
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in) | :: | cond |
The assertion result. |
||
character(len=*), | intent(in) | :: | cond_str |
The assertion code. |
||
character(len=*), | intent(in) | :: | file |
The file containing the assertion. |
||
integer, | intent(in) | :: | line |
The line of the assertion. |