Error reporter.
A very simplified version of the SLATEC routine.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | librar |
name of the library |
||
character(len=*), | intent(in) | :: | subrou |
name of the routine that detected the error |
||
character(len=*), | intent(in) | :: | messg |
text of the error or warning message |
||
integer, | intent(in) | :: | nerr |
error code |
||
integer, | intent(in) | :: | level |
value in the range 0 to 2 that indicates the level (severity) of the error. |
subroutine xermsg(librar,subrou,messg,nerr,level) implicit none character(len=*),intent(in) :: librar !! name of the library character(len=*),intent(in) :: subrou !! name of the routine that detected the error character(len=*),intent(in) :: messg !! text of the error or warning message integer,intent(in) :: nerr !! error code integer,intent(in) :: level !! value in the range 0 to 2 that indicates the !! level (severity) of the error. write(error_unit, '(A,I2,A)') 'Error ',nerr,' in '//trim(librar)//& ' : '//trim(subrou)//' : '//trim(messg) end subroutine xermsg