home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.ee.lbl.gov
/
2014.05.ftp.ee.lbl.gov.tar
/
ftp.ee.lbl.gov
/
mtrek.shar.Z
/
mtrek.shar
/
getrel.ftn
< prev
next >
Wrap
Text File
|
1990-04-02
|
506b
|
25 lines
SUBROUTINE GETREL(NUM,FLAG,LOW,HIGH,VALID)
INCLUDE 'BUFFER.COM/-LI'
LOGICAL*1 FLAG,VALID
REAL NUM,LOW,HIGH
INTEGER NCHRS
VALID=.TRUE.
FLAG=.TRUE.
READ(1,10001,END=10009,ERR=10007)NCHRS,(IBUF(I),I=1,15)
10001 FORMAT(Q,15A1)
10002 IF(NCHRS.NE.0)GOTO 10003
NUM=0.0
FLAG=.FALSE.
GOTO 10008
10003 IF(NCHRS.GT.15)GOTO 10007
DECODE(15,10004,IBUF,ERR=10007)NUM
10004 FORMAT(G<NCHRS>.0)
IF((NUM.GE.LOW).AND.(NUM.LE.HIGH))GOTO 10008
10007 VALID=.FALSE.
FLAG=.FALSE.
10008 RETURN
10009 CALL EXIT
END