Handler to treat incorrect argument errors
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | iounit | I/O unit to write error to |
||
character(len=*), | intent(in) | :: | message | Error message |
subroutine handle_inc_error(iounit, message)
!> I/O unit to write error to
integer, intent(in) :: iounit
!> Error message
character(len=*), intent(in) :: message
write(unit=iounit, fmt=*) "Incorrect argument passed in ", message
end subroutine handle_inc_error