Abort the code giving an error message
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | error_msg | |||
| integer | :: | stdout |
subroutine io_error(error_msg, stdout) !================================================ ! !! Abort the code giving an error message ! !================================================ implicit none character(len=*), intent(in) :: error_msg integer :: stdout close (stdout) write (*, '(1x,a)') trim(error_msg) write (*, '(A)') "Error: examine the output/error file for details" stop 1 end subroutine io_error