40 CHARACTER*128 BORT_STR
48 IF(lunit.LE.0)
GOTO 900
49 IF(lun .LE.0)
GOTO 901
50 IF(il.LT.-1 .OR. il.GT.1)
GOTO 902
51 IF(im.LT. 0 .OR. im.GT.1)
GOTO 903
56 IF(abs(
iolun(lun)).NE.lunit)
THEN
57 IF(
iolun(lun).NE.0)
GOTO 905
64 iolun(lun) = sign(lunit,il)
75 900
WRITE(bort_str,
'("BUFRLIB: WTSTAT - INVALID UNIT NUMBER PASSED '//
76 .
' INTO FIRST ARGUMENT (INPUT) (=",I3,")")') lunit
78 901
WRITE(bort_str,
'("BUFRLIB: WTSTAT - INVALID I/O STREAM INDEX '//
79 .
'PASSED INTO SECOND ARGUMENT (INPUT) (=",I3,")")') lun
81 902
WRITE(bort_str,
'("BUFRLIB: WTSTAT - INVALID LOGICAL UNIT STATUS'//
82 .
' INDICATOR PASSED INTO THIRD ARGUMENT (INPUT) (=",I4,")")') il
84 903
WRITE(bort_str,
'("BUFRLIB: WTSTAT - INVALID BUFR MESSAGE STATUS'//
85 .
' INDICATOR PASSED INTO FOURTH ARGUMENT (INPUT) (=",I4,")")') im
87 905
WRITE(bort_str,
'("BUFRLIB: WTSTAT - ATTEMPTING TO REDEFINE '//
88 .
'EXISTING FILE UNIT (LOGICAL UNIT NUMBER ",I3,")")')
iolun(lun)
subroutine bort(STR)
Log one error message and abort application program.
This module contains array declarations used to store file and message status indicators for all logi...
integer, dimension(:), allocatable iolun
File status indicators.
integer, dimension(:), allocatable iomsg
Message status indicator corresponding to iolun, denoting whether a BUFR message is currently open wi...
subroutine wtstat(LUNIT, LUN, IL, IM)
Update file status in library internals.