mod_assert Module

Module defining the assertion routine used by assert.fpp.

Note

See assert.fpp for usage of the assert macro. The subroutine in this module should not be used directly.



Subroutines

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

Utility function used by assert.fpp's assert macro.

Read more…

Arguments

Type IntentOptional 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.