Дж. С. Дэвис. Статистический анализ данных в геологии. Книга 2
100 CONTINUE
C
C END OF NUMBER
C
200 A = 0.0
IF(NDIG.GT.0) GOTO 210
I1 = I1 + 1
RETURN
210 IF(NDIG*IDEC.EQ.1) GOTO 900
DO 300 J = 1,NDIG
IF(J.LT.IDEC) A=10.0 * A + FLOAT(NM(IB + J)
IF(J.EQ.IDEC) GOTO 300
IF(J.GT.IDEC) A = A + FLOAT(NM(IB + J)) * 10.0 * FLOAT(IDEC - J)
300 CONTINUE
A = A * FLOAT(NEG)
IERR = 0
I1 = IE + 1
RETURN
C
C ERFCR
C
900 WRITE(I6,910)
910 FORMAT(1X,2iHError in number field)
IERR = -1
RETURN
END
C
C./ ADD NAME=CHKALL
C
C CHECKS FOR CHARACTERS SPELLING "QUIT", "UP", "HELP" ETC
C
C * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
C
SUBROUTINE CHKALL(M1,M2,M3,M4)
CHARACTER*1 M1,M2,M3,M4
C
CALL CHECK(M1,M2,M3,M4,52,53,48,49,-9)
CALL CHECK(M1,M2,M3,M4,38,57,42,53.-9)
CALL CHECK(M1,M2,M3,M4,34,35,48,51,-9)
CALL CHECK(M1,M2,M1,M1.54,49,54.54,-1)
CALL CHECK(M1,M1,M1,M1,50,5Q,50,50,-9)
CALL CHECK(M1,M2,M1,M1,54,1,54,54,-1)
CALL CHECK(M1,M2,M3,M4,41,38,45,49,-10)
CALL CHECK(M1,M1,M1,M1,32,32,32,32,-10)
CALL CHECK(M1,M2,M3,M4,36,48,49,58,-5)
CALL CHECK(M1,M1,M1,M1,54,54,54,54,-1)
CALL CHECK(M1,M1,M1,M1,41,41,41,41,-10)
CALL CHECK(M1,M1,M1,M1,82,82,82,82,-9)
CALL CHECK(M1,M1,M1,M1,85,86,86,86,-1)
CALL CHECK(M1,M1,M1,M1,73,73,73,73,-10)
RETURN
END
C
C./ ADD NAME=CHECK
C
C COMPARES STRING M1,M2,M3,M4 TO ASCIl CHARACTERS K1,K2,K3,K4
C * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
C
SUBROUTINE CHECK(M1,M2,M3,M4,K1,K2,K3,K4,L)
COMMON /TLC/ SAVE(20),LZ,LU,Z1,Z2,D1.D2,NZ,NSTEP,DEPINC,DFLT,UPA
COMMON /ASC/ IALPHA(96)
CHARACTER*1 IALPHA,M1,M2,M3,M4
IF(M1.NE.IALPHA(K1)) RETURN
IF(M2.NE.IALPHA(K2)) RETURN
IF(M3.NE.IALPHA(K3)) RETURN
IF(M4.NE.IALPHA(K4)) RETURN
LZ = L
RETURN
END