62 CHARACTER*128 bort_str
70 IF(lunit.LE.0) goto 900
71 IF(lun .LE.0) goto 901
72 IF(il.LT.-1 .OR. il.GT.1) goto 902
73 IF(im.LT. 0 .OR. im.GT.1) goto 903
78 IF(abs(iolun(lun)).NE.lunit)
THEN
79 IF(iolun(lun).NE.0) goto 905
86 iolun(lun) = sign(lunit,il)
97 900
WRITE(bort_str,
'("BUFRLIB: WTSTAT - INVALID UNIT NUMBER PASSED '//
98 .
' INTO FIRST ARGUMENT (INPUT) (=",I3,")")') lunit
100 901
WRITE(bort_str,
'("BUFRLIB: WTSTAT - INVALID I/O STREAM INDEX '//
101 .
'PASSED INTO SECOND ARGUMENT (INPUT) (=",I3,")")') lun
103 902
WRITE(bort_str,
'("BUFRLIB: WTSTAT - INVALID LOGICAL UNIT STATUS'//
104 .
' INDICATOR PASSED INTO THIRD ARGUMENT (INPUT) (=",I4,")")') il
106 903
WRITE(bort_str,
'("BUFRLIB: WTSTAT - INVALID BUFR MESSAGE STATUS'//
107 .
' INDICATOR PASSED INTO FOURTH ARGUMENT (INPUT) (=",I4,")")') im
109 905
WRITE(bort_str,
'("BUFRLIB: WTSTAT - ATTEMPTING TO REDEFINE '//
110 .
'EXISTING FILE UNIT (LOGICAL UNIT NUMBER ",I3,")")') iolun(lun)
subroutine wtstat(LUNIT, LUN, IL, IM)
This subroutine can be used to connect or disconnect a specified Fortran logical unit number to/from ...
subroutine bort(STR)
This subroutine calls subroutine errwrt() to log an error message, then calls subroutine bort_exit() ...