Skip to main content

Assert

Assertion related methods.

Interface 1

 INTERFACE
MODULE SUBROUTINE Assert(Mat, s, msg, file, line, routine)
REAL(DFP), INTENT(IN) :: Mat(:, :)
INTEGER(I4B), INTENT(IN) :: s(2)
INTEGER(I4B), INTENT(IN) :: line
CHARACTER(*), INTENT(IN) :: msg, file, routine
END SUBROUTINE
END INTERFACE

If shape of Mat is not same as s, then this routine prints error and stop program.

Interface 2

INTERFACE
MODULE SUBROUTINE Assert(Mat, s, msg, file, line, routine)
REAL(DFP), INTENT(IN) :: Mat(:, :, :)
INTEGER(I4B), INTENT(IN) :: s(3)
INTEGER(I4B), INTENT(IN) :: line
CHARACTER(*), INTENT(IN) :: msg, file, routine
END SUBROUTINE
END INTERFACE

Interface 3

INTERFACE
MODULE SUBROUTINE Assert(Mat, s, msg, file, line, routine)
REAL(DFP), INTENT(IN) :: Mat(:, :, :, :)
INTEGER(I4B), INTENT(IN) :: s(4)
INTEGER(I4B), INTENT(IN) :: line
CHARACTER(*), INTENT(IN) :: msg, file, routine
END SUBROUTINE
END INTERFACE

Interface 4

MODULE SUBROUTINE Assert(n1, n2, msg, file, line, routine)
INTEGER(I4B), INTENT(IN) :: n1, n2
INTEGER(I4B), INTENT(IN) :: line
CHARACTER(*), INTENT(IN) :: msg, file, routine
END SUBROUTINE Assert