0
-
Source:FatalError.f90
0
-
Graph:FatalError.gcno
1
-
!! Provides error message subroutine
4
-
!! Provides `ERROUT` error message
9
-
INTEGER, PRIVATE :: PRTFile = 6
13
1
SUBROUTINE ERROUT( WHERE, ErrMsg )
14
-
!! Outputs error message and terminates program
17
-
CHARACTER (LEN=*), INTENT( IN ) :: WHERE
18
-
!! Program or subroutine the error is being called from
19
-
CHARACTER (LEN=*), INTENT( IN ) :: ErrMsg
20
-
!! The error message itself
25
1
WRITE( PRTFile, * ) '*** FATAL ERROR ***'
28
1
WRITE( PRTFile, * ) 'Generated by program or subroutine: ', WHERE( 1 : Last )
30
1
Last = LEN( ErrMsg )
31
1
WRITE( PRTFile, * ) ErrMsg( 1 : Last )
35
-
! Intel Fortran can't handle the following
36
-
! ERROR STOP 'Fatal Error in ' // WHERE( 1 : Last1 ) // ': ' // ErrMsg( 1 : Last2 )
37
1
ERROR STOP 'Fatal Error: Check the print file for details'
39
1
END SUBROUTINE ERROUT
41
-
END MODULE FatalError