1 @brief c - like
assert implementation for fortran.
11 character(len=*),
intent(in) :: cond
12 character(len=*),
intent(in) :: file
13 integer,
intent(in) :: line
14 character(len=6) :: line_str
15 write (line_str,
'(i6)') line
16 write (*,
'(a, a, a, a, a, a)') file,
":", trim(adjustl(line_str)),
": Assertion `", cond,
"' failed."
17 write (*,
'(a)')
"Aborted"
subroutine assertion(cond, file, line)
Assertion routine designed to mimick the behavior of C's 'assert' from 'assert.h'....