assert Subroutine

public subroutine assert(cond, cond_str, file, line)

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.

Arguments

TypeIntentOptionalAttributesName
logical, intent(in) :: cond

The assertion result.

character, intent(in) :: cond_str

The assertion code.

character, intent(in) :: file

The file containing the assertion.

integer, intent(in) :: line

The line of the assertion.


Contents

None