4 SUBROUTINE mfix_exit(myID, normal_termination)
17 INTEGER,
INTENT(IN) :: myID
19 LOGICAL,
INTENT(IN),
OPTIONAL :: normal_termination
25 CHARACTER(len=64) :: myID_c
28 myid_c=
'';
WRITE(myid_c,*) myid
31 IF (.not.
present(normal_termination))
THEN 35 IF(isopen)
WRITE(
unit_log,1001) trim(adjustl(myid_c))
52 1000
FORMAT(2/,1x,70(
'*'),/
' Fatal error reported on one or more', &
53 ' processes. The .LOG file',/
' may contain additional', &
54 ' information about the failure.',/1x,70(
'*'))
56 1001
FORMAT(2/,1x,70(
'*'),/
' Fatal error reported on PE ', &
57 a,
'. The .LOG file may contain',/
' additional ', &
58 'information about the failure.',/1x,70(
'*'))
60 1002
FORMAT(2/,1x,
'Program Terminated.',2/)
79 INTEGER,
INTENT(IN) :: UNIT_l
89 INQUIRE(unit=unit_l, opened=fopen, iostat=ios )
91 IF(fopen)
CLOSE(unit_l)
integer, parameter unit_out
subroutine close_file(UNIT_l)
subroutine mfix_exit(myID, normal_termination)
integer, parameter unit_log