|
kusano |
2b45e8 |
PROGRAM SBLAT1
|
|
kusano |
2b45e8 |
* Test program for the REAL Level 1 BLAS.
|
|
kusano |
2b45e8 |
* Based upon the original BLAS test routine together with:
|
|
kusano |
2b45e8 |
* F06EAF Example Program Text
|
|
kusano |
2b45e8 |
* .. Parameters ..
|
|
kusano |
2b45e8 |
INTEGER NOUT
|
|
kusano |
2b45e8 |
PARAMETER (NOUT=6)
|
|
kusano |
2b45e8 |
* .. Scalars in Common ..
|
|
kusano |
2b45e8 |
INTEGER ICASE, INCX, INCY, MODE, N
|
|
kusano |
2b45e8 |
LOGICAL PASS
|
|
kusano |
2b45e8 |
* .. Local Scalars ..
|
|
kusano |
2b45e8 |
REAL SFAC
|
|
kusano |
2b45e8 |
INTEGER IC
|
|
kusano |
2b45e8 |
* .. External Subroutines ..
|
|
kusano |
2b45e8 |
EXTERNAL CHECK0, CHECK1, CHECK2, CHECK3, HEADER
|
|
kusano |
2b45e8 |
* .. Common blocks ..
|
|
kusano |
2b45e8 |
COMMON /COMBLA/ICASE, N, INCX, INCY, MODE, PASS
|
|
kusano |
2b45e8 |
* .. Data statements ..
|
|
kusano |
2b45e8 |
DATA SFAC/9.765625E-4/
|
|
kusano |
2b45e8 |
* .. Executable Statements ..
|
|
kusano |
2b45e8 |
WRITE (NOUT,99999)
|
|
kusano |
2b45e8 |
DO 20 IC = 1, 10
|
|
kusano |
2b45e8 |
ICASE = IC
|
|
kusano |
2b45e8 |
CALL HEADER
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
* .. Initialize PASS, INCX, INCY, and MODE for a new case. ..
|
|
kusano |
2b45e8 |
* .. the value 9999 for INCX, INCY or MODE will appear in the ..
|
|
kusano |
2b45e8 |
* .. detailed output, if any, for cases that do not involve ..
|
|
kusano |
2b45e8 |
* .. these parameters ..
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
PASS = .TRUE.
|
|
kusano |
2b45e8 |
INCX = 9999
|
|
kusano |
2b45e8 |
INCY = 9999
|
|
kusano |
2b45e8 |
MODE = 9999
|
|
kusano |
2b45e8 |
IF (ICASE.EQ.3) THEN
|
|
kusano |
2b45e8 |
CALL CHECK0(SFAC)
|
|
kusano |
2b45e8 |
ELSE IF (ICASE.EQ.7 .OR. ICASE.EQ.8 .OR. ICASE.EQ.9 .OR.
|
|
kusano |
2b45e8 |
+ ICASE.EQ.10) THEN
|
|
kusano |
2b45e8 |
CALL CHECK1(SFAC)
|
|
kusano |
2b45e8 |
ELSE IF (ICASE.EQ.1 .OR. ICASE.EQ.2 .OR. ICASE.EQ.5 .OR.
|
|
kusano |
2b45e8 |
+ ICASE.EQ.6) THEN
|
|
kusano |
2b45e8 |
CALL CHECK2(SFAC)
|
|
kusano |
2b45e8 |
ELSE IF (ICASE.EQ.4) THEN
|
|
kusano |
2b45e8 |
CALL CHECK3(SFAC)
|
|
kusano |
2b45e8 |
END IF
|
|
kusano |
2b45e8 |
* -- Print
|
|
kusano |
2b45e8 |
IF (PASS) WRITE (NOUT,99998)
|
|
kusano |
2b45e8 |
20 CONTINUE
|
|
kusano |
2b45e8 |
STOP
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
99999 FORMAT (' Real BLAS Test Program Results',/1X)
|
|
kusano |
2b45e8 |
99998 FORMAT (' ----- PASS -----')
|
|
kusano |
2b45e8 |
END
|
|
kusano |
2b45e8 |
SUBROUTINE HEADER
|
|
kusano |
2b45e8 |
* .. Parameters ..
|
|
kusano |
2b45e8 |
INTEGER NOUT
|
|
kusano |
2b45e8 |
PARAMETER (NOUT=6)
|
|
kusano |
2b45e8 |
* .. Scalars in Common ..
|
|
kusano |
2b45e8 |
INTEGER ICASE, INCX, INCY, MODE, N
|
|
kusano |
2b45e8 |
LOGICAL PASS
|
|
kusano |
2b45e8 |
* .. Local Arrays ..
|
|
kusano |
2b45e8 |
CHARACTER*6 L(10)
|
|
kusano |
2b45e8 |
* .. Common blocks ..
|
|
kusano |
2b45e8 |
COMMON /COMBLA/ICASE, N, INCX, INCY, MODE, PASS
|
|
kusano |
2b45e8 |
* .. Data statements ..
|
|
kusano |
2b45e8 |
DATA L(1)/' SDOT '/
|
|
kusano |
2b45e8 |
DATA L(2)/'SAXPY '/
|
|
kusano |
2b45e8 |
DATA L(3)/'SROTG '/
|
|
kusano |
2b45e8 |
DATA L(4)/' SROT '/
|
|
kusano |
2b45e8 |
DATA L(5)/'SCOPY '/
|
|
kusano |
2b45e8 |
DATA L(6)/'SSWAP '/
|
|
kusano |
2b45e8 |
DATA L(7)/'SNRM2 '/
|
|
kusano |
2b45e8 |
DATA L(8)/'SASUM '/
|
|
kusano |
2b45e8 |
DATA L(9)/'SSCAL '/
|
|
kusano |
2b45e8 |
DATA L(10)/'ISAMAX'/
|
|
kusano |
2b45e8 |
* .. Executable Statements ..
|
|
kusano |
2b45e8 |
WRITE (NOUT,99999) ICASE, L(ICASE)
|
|
kusano |
2b45e8 |
RETURN
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
99999 FORMAT (/' Test of subprogram number',I3,12X,A6)
|
|
kusano |
2b45e8 |
END
|
|
kusano |
2b45e8 |
SUBROUTINE CHECK0(SFAC)
|
|
kusano |
2b45e8 |
* .. Parameters ..
|
|
kusano |
2b45e8 |
INTEGER NOUT
|
|
kusano |
2b45e8 |
PARAMETER (NOUT=6)
|
|
kusano |
2b45e8 |
* .. Scalar Arguments ..
|
|
kusano |
2b45e8 |
REAL SFAC
|
|
kusano |
2b45e8 |
* .. Scalars in Common ..
|
|
kusano |
2b45e8 |
INTEGER ICASE, INCX, INCY, MODE, N
|
|
kusano |
2b45e8 |
LOGICAL PASS
|
|
kusano |
2b45e8 |
* .. Local Scalars ..
|
|
kusano |
2b45e8 |
REAL D12, SA, SB, SC, SS
|
|
kusano |
2b45e8 |
INTEGER K
|
|
kusano |
2b45e8 |
* .. Local Arrays ..
|
|
kusano |
2b45e8 |
REAL DA1(8), DATRUE(8), DB1(8), DBTRUE(8), DC1(8),
|
|
kusano |
2b45e8 |
+ DS1(8)
|
|
kusano |
2b45e8 |
* .. External Subroutines ..
|
|
kusano |
2b45e8 |
EXTERNAL SROTG, STEST1
|
|
kusano |
2b45e8 |
* .. Common blocks ..
|
|
kusano |
2b45e8 |
COMMON /COMBLA/ICASE, N, INCX, INCY, MODE, PASS
|
|
kusano |
2b45e8 |
* .. Data statements ..
|
|
kusano |
2b45e8 |
DATA DA1/0.3E0, 0.4E0, -0.3E0, -0.4E0, -0.3E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 1.0E0/
|
|
kusano |
2b45e8 |
DATA DB1/0.4E0, 0.3E0, 0.4E0, 0.3E0, -0.4E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 1.0E0, 0.0E0/
|
|
kusano |
2b45e8 |
DATA DC1/0.6E0, 0.8E0, -0.6E0, 0.8E0, 0.6E0, 1.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 1.0E0/
|
|
kusano |
2b45e8 |
DATA DS1/0.8E0, 0.6E0, 0.8E0, -0.6E0, 0.8E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 1.0E0, 0.0E0/
|
|
kusano |
2b45e8 |
DATA DATRUE/0.5E0, 0.5E0, 0.5E0, -0.5E0, -0.5E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 1.0E0, 1.0E0/
|
|
kusano |
2b45e8 |
DATA DBTRUE/0.0E0, 0.6E0, 0.0E0, -0.6E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 1.0E0, 0.0E0/
|
|
kusano |
2b45e8 |
DATA D12/4096.0E0/
|
|
kusano |
2b45e8 |
* .. Executable Statements ..
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
* Compute true values which cannot be prestored
|
|
kusano |
2b45e8 |
* in decimal notation
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
DBTRUE(1) = 1.0E0/0.6E0
|
|
kusano |
2b45e8 |
DBTRUE(3) = -1.0E0/0.6E0
|
|
kusano |
2b45e8 |
DBTRUE(5) = 1.0E0/0.6E0
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
DO 20 K = 1, 8
|
|
kusano |
2b45e8 |
* .. Set N=K for identification in output if any ..
|
|
kusano |
2b45e8 |
N = K
|
|
kusano |
2b45e8 |
IF (ICASE.EQ.3) THEN
|
|
kusano |
2b45e8 |
* .. SROTG ..
|
|
kusano |
2b45e8 |
IF (K.GT.8) GO TO 40
|
|
kusano |
2b45e8 |
SA = DA1(K)
|
|
kusano |
2b45e8 |
SB = DB1(K)
|
|
kusano |
2b45e8 |
CALL SROTG(SA,SB,SC,SS)
|
|
kusano |
2b45e8 |
CALL STEST1(SA,DATRUE(K),DATRUE(K),SFAC)
|
|
kusano |
2b45e8 |
CALL STEST1(SB,DBTRUE(K),DBTRUE(K),SFAC)
|
|
kusano |
2b45e8 |
CALL STEST1(SC,DC1(K),DC1(K),SFAC)
|
|
kusano |
2b45e8 |
CALL STEST1(SS,DS1(K),DS1(K),SFAC)
|
|
kusano |
2b45e8 |
ELSE
|
|
kusano |
2b45e8 |
WRITE (NOUT,*) ' Shouldn''t be here in CHECK0'
|
|
kusano |
2b45e8 |
STOP
|
|
kusano |
2b45e8 |
END IF
|
|
kusano |
2b45e8 |
20 CONTINUE
|
|
kusano |
2b45e8 |
40 RETURN
|
|
kusano |
2b45e8 |
END
|
|
kusano |
2b45e8 |
SUBROUTINE CHECK1(SFAC)
|
|
kusano |
2b45e8 |
* .. Parameters ..
|
|
kusano |
2b45e8 |
INTEGER NOUT
|
|
kusano |
2b45e8 |
PARAMETER (NOUT=6)
|
|
kusano |
2b45e8 |
* .. Scalar Arguments ..
|
|
kusano |
2b45e8 |
REAL SFAC
|
|
kusano |
2b45e8 |
* .. Scalars in Common ..
|
|
kusano |
2b45e8 |
INTEGER ICASE, INCX, INCY, MODE, N
|
|
kusano |
2b45e8 |
LOGICAL PASS
|
|
kusano |
2b45e8 |
* .. Local Scalars ..
|
|
kusano |
2b45e8 |
INTEGER I, LEN, NP1
|
|
kusano |
2b45e8 |
* .. Local Arrays ..
|
|
kusano |
2b45e8 |
REAL DTRUE1(5), DTRUE3(5), DTRUE5(8,5,2), DV(8,5,2),
|
|
kusano |
2b45e8 |
+ SA(10), STEMP(1), STRUE(8), SX(8)
|
|
kusano |
2b45e8 |
INTEGER ITRUE2(5)
|
|
kusano |
2b45e8 |
* .. External Functions ..
|
|
kusano |
2b45e8 |
REAL SASUM, SNRM2
|
|
kusano |
2b45e8 |
INTEGER ISAMAX
|
|
kusano |
2b45e8 |
EXTERNAL SASUM, SNRM2, ISAMAX
|
|
kusano |
2b45e8 |
* .. External Subroutines ..
|
|
kusano |
2b45e8 |
EXTERNAL ITEST1, SSCAL, STEST, STEST1
|
|
kusano |
2b45e8 |
* .. Intrinsic Functions ..
|
|
kusano |
2b45e8 |
INTRINSIC MAX
|
|
kusano |
2b45e8 |
* .. Common blocks ..
|
|
kusano |
2b45e8 |
COMMON /COMBLA/ICASE, N, INCX, INCY, MODE, PASS
|
|
kusano |
2b45e8 |
* .. Data statements ..
|
|
kusano |
2b45e8 |
DATA SA/0.3E0, -1.0E0, 0.0E0, 1.0E0, 0.3E0, 0.3E0,
|
|
kusano |
2b45e8 |
+ 0.3E0, 0.3E0, 0.3E0, 0.3E0/
|
|
kusano |
2b45e8 |
DATA DV/0.1E0, 2.0E0, 2.0E0, 2.0E0, 2.0E0, 2.0E0,
|
|
kusano |
2b45e8 |
+ 2.0E0, 2.0E0, 0.3E0, 3.0E0, 3.0E0, 3.0E0, 3.0E0,
|
|
kusano |
2b45e8 |
+ 3.0E0, 3.0E0, 3.0E0, 0.3E0, -0.4E0, 4.0E0,
|
|
kusano |
2b45e8 |
+ 4.0E0, 4.0E0, 4.0E0, 4.0E0, 4.0E0, 0.2E0,
|
|
kusano |
2b45e8 |
+ -0.6E0, 0.3E0, 5.0E0, 5.0E0, 5.0E0, 5.0E0,
|
|
kusano |
2b45e8 |
+ 5.0E0, 0.1E0,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E0, 8.0E0,
|
|
kusano |
2b45e8 |
+ 8.0E0, 8.0E0, 8.0E0, 8.0E0, 8.0E0, 8.0E0,
|
|
kusano |
2b45e8 |
+ 0.09E0, 9.0E0, 9.0E0, 9.0E0, 9.0E0, 9.0E0,
|
|
kusano |
2b45e8 |
+ 9.0E0, 9.0E0, 0.09E0, 2.0E0, -0.12E0, 2.0E0,
|
|
kusano |
2b45e8 |
+ 2.0E0, 2.0E0, 2.0E0, 2.0E0, 0.06E0, 3.0E0,
|
|
kusano |
2b45e8 |
+ -0.18E0, 5.0E0, 0.09E0, 2.0E0, 2.0E0, 2.0E0,
|
|
kusano |
2b45e8 |
+ 0.03E0, 4.0E0, -0.09E0, 6.0E0, -0.15E0, 7.0E0,
|
|
kusano |
2b45e8 |
+ -0.03E0, 3.0E0/
|
|
kusano |
2b45e8 |
DATA ITRUE2/0, 1, 2, 2, 3/
|
|
kusano |
2b45e8 |
* .. Executable Statements ..
|
|
kusano |
2b45e8 |
DO 80 INCX = 1, 2
|
|
kusano |
2b45e8 |
DO 60 NP1 = 1, 5
|
|
kusano |
2b45e8 |
N = NP1 - 1
|
|
kusano |
2b45e8 |
LEN = 2*MAX(N,1)
|
|
kusano |
2b45e8 |
* .. Set vector arguments ..
|
|
kusano |
2b45e8 |
DO 20 I = 1, LEN
|
|
kusano |
2b45e8 |
SX(I) = DV(I,NP1,INCX)
|
|
kusano |
2b45e8 |
20 CONTINUE
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
IF (ICASE.EQ.7) THEN
|
|
kusano |
2b45e8 |
* .. SNRM2 ..
|
|
kusano |
2b45e8 |
STEMP(1) = DTRUE1(NP1)
|
|
kusano |
2b45e8 |
CALL STEST1(SNRM2(N,SX,INCX),STEMP,STEMP,SFAC)
|
|
kusano |
2b45e8 |
ELSE IF (ICASE.EQ.8) THEN
|
|
kusano |
2b45e8 |
* .. SASUM ..
|
|
kusano |
2b45e8 |
STEMP(1) = DTRUE3(NP1)
|
|
kusano |
2b45e8 |
CALL STEST1(SASUM(N,SX,INCX),STEMP,STEMP,SFAC)
|
|
kusano |
2b45e8 |
ELSE IF (ICASE.EQ.9) THEN
|
|
kusano |
2b45e8 |
* .. SSCAL ..
|
|
kusano |
2b45e8 |
CALL SSCAL(N,SA((INCX-1)*5+NP1),SX,INCX)
|
|
kusano |
2b45e8 |
DO 40 I = 1, LEN
|
|
kusano |
2b45e8 |
STRUE(I) = DTRUE5(I,NP1,INCX)
|
|
kusano |
2b45e8 |
40 CONTINUE
|
|
kusano |
2b45e8 |
CALL STEST(LEN,SX,STRUE,STRUE,SFAC)
|
|
kusano |
2b45e8 |
ELSE IF (ICASE.EQ.10) THEN
|
|
kusano |
2b45e8 |
* .. ISAMAX ..
|
|
kusano |
2b45e8 |
CALL ITEST1(ISAMAX(N,SX,INCX),ITRUE2(NP1))
|
|
kusano |
2b45e8 |
ELSE
|
|
kusano |
2b45e8 |
WRITE (NOUT,*) ' Shouldn''t be here in CHECK1'
|
|
kusano |
2b45e8 |
STOP
|
|
kusano |
2b45e8 |
END IF
|
|
kusano |
2b45e8 |
60 CONTINUE
|
|
kusano |
2b45e8 |
80 CONTINUE
|
|
kusano |
2b45e8 |
RETURN
|
|
kusano |
2b45e8 |
END
|
|
kusano |
2b45e8 |
SUBROUTINE CHECK2(SFAC)
|
|
kusano |
2b45e8 |
* .. Parameters ..
|
|
kusano |
2b45e8 |
INTEGER NOUT
|
|
kusano |
2b45e8 |
PARAMETER (NOUT=6)
|
|
kusano |
2b45e8 |
* .. Scalar Arguments ..
|
|
kusano |
2b45e8 |
REAL SFAC
|
|
kusano |
2b45e8 |
* .. Scalars in Common ..
|
|
kusano |
2b45e8 |
INTEGER ICASE, INCX, INCY, MODE, N
|
|
kusano |
2b45e8 |
LOGICAL PASS
|
|
kusano |
2b45e8 |
* .. Local Scalars ..
|
|
kusano |
2b45e8 |
REAL SA, SC, SS
|
|
kusano |
2b45e8 |
INTEGER I, J, KI, KN, KSIZE, LENX, LENY, MX, MY
|
|
kusano |
2b45e8 |
* .. Local Arrays ..
|
|
kusano |
2b45e8 |
REAL DT10X(7,4,4), DT10Y(7,4,4), DT7(4,4),
|
|
kusano |
2b45e8 |
+ DT8(7,4,4), DT9X(7,4,4), DT9Y(7,4,4), DX1(7),
|
|
kusano |
2b45e8 |
+ DY1(7), SSIZE1(4), SSIZE2(14,2), STX(7), STY(7),
|
|
kusano |
2b45e8 |
+ SX(7), SY(7)
|
|
kusano |
2b45e8 |
INTEGER INCXS(4), INCYS(4), LENS(4,2), NS(4)
|
|
kusano |
2b45e8 |
* .. External Functions ..
|
|
kusano |
2b45e8 |
REAL SDOT
|
|
kusano |
2b45e8 |
EXTERNAL SDOT
|
|
kusano |
2b45e8 |
* .. External Subroutines ..
|
|
kusano |
2b45e8 |
EXTERNAL SAXPY, SCOPY, SSWAP, STEST, STEST1
|
|
kusano |
2b45e8 |
* .. Intrinsic Functions ..
|
|
kusano |
2b45e8 |
INTRINSIC ABS, MIN
|
|
kusano |
2b45e8 |
* .. Common blocks ..
|
|
kusano |
2b45e8 |
COMMON /COMBLA/ICASE, N, INCX, INCY, MODE, PASS
|
|
kusano |
2b45e8 |
* .. Data statements ..
|
|
kusano |
2b45e8 |
DATA SA/0.3E0/
|
|
kusano |
2b45e8 |
DATA INCXS/1, 2, -2, -1/
|
|
kusano |
2b45e8 |
DATA INCYS/1, -2, 1, -2/
|
|
kusano |
2b45e8 |
DATA LENS/1, 1, 2, 4, 1, 1, 3, 7/
|
|
kusano |
2b45e8 |
DATA NS/0, 1, 2, 4/
|
|
kusano |
2b45e8 |
DATA DX1/0.6E0, 0.1E0, -0.5E0, 0.8E0, 0.9E0, -0.3E0,
|
|
kusano |
2b45e8 |
+ -0.4E0/
|
|
kusano |
2b45e8 |
DATA DY1/0.5E0, -0.9E0, 0.3E0, 0.7E0, -0.6E0, 0.2E0,
|
|
kusano |
2b45e8 |
+ 0.8E0/
|
|
kusano |
2b45e8 |
DATA SC, SS/0.8E0, 0.6E0/
|
|
kusano |
2b45e8 |
DATA DT7/0.0E0, 0.30E0, 0.21E0, 0.62E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.30E0, -0.07E0, 0.85E0, 0.0E0, 0.30E0, -0.79E0,
|
|
kusano |
2b45e8 |
+ -0.74E0, 0.0E0, 0.30E0, 0.33E0, 1.27E0/
|
|
kusano |
2b45e8 |
DATA DT8/0.5E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.68E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.68E0, -0.87E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.0E0, 0.68E0, -0.87E0, 0.15E0,
|
|
kusano |
2b45e8 |
+ 0.94E0, 0.0E0, 0.0E0, 0.0E0, 0.5E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.68E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.35E0, -0.9E0, 0.48E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.38E0, -0.9E0, 0.57E0, 0.7E0, -0.75E0,
|
|
kusano |
2b45e8 |
+ 0.2E0, 0.98E0, 0.5E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.0E0, 0.68E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.35E0, -0.72E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.38E0,
|
|
kusano |
2b45e8 |
+ -0.63E0, 0.15E0, 0.88E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.5E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.68E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.68E0, -0.9E0, 0.33E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.68E0, -0.9E0, 0.33E0, 0.7E0,
|
|
kusano |
2b45e8 |
+ -0.75E0, 0.2E0, 1.04E0/
|
|
kusano |
2b45e8 |
DATA DT9X/0.6E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.78E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.78E0, -0.46E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.0E0, 0.78E0, -0.46E0, -0.22E0,
|
|
kusano |
2b45e8 |
+ 1.06E0, 0.0E0, 0.0E0, 0.0E0, 0.6E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.78E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.66E0, 0.1E0, -0.1E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.96E0, 0.1E0, -0.76E0, 0.8E0, 0.90E0,
|
|
kusano |
2b45e8 |
+ -0.3E0, -0.02E0, 0.6E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.0E0, 0.78E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+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, 0.0E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 1.17E0, 1.17E0, 1.17E0, 1.17E0, 1.17E0,
|
|
kusano |
2b45e8 |
+ 1.17E0, 1.17E0, 1.17E0, 1.17E0, 1.17E0, 1.17E0,
|
|
kusano |
2b45e8 |
+ 1.17E0, 1.17E0, 1.17E0/
|
|
kusano |
2b45e8 |
* .. Executable Statements ..
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
DO 120 KI = 1, 4
|
|
kusano |
2b45e8 |
INCX = INCXS(KI)
|
|
kusano |
2b45e8 |
INCY = INCYS(KI)
|
|
kusano |
2b45e8 |
MX = ABS(INCX)
|
|
kusano |
2b45e8 |
MY = ABS(INCY)
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
DO 100 KN = 1, 4
|
|
kusano |
2b45e8 |
N = NS(KN)
|
|
kusano |
2b45e8 |
KSIZE = MIN(2,KN)
|
|
kusano |
2b45e8 |
LENX = LENS(KN,MX)
|
|
kusano |
2b45e8 |
LENY = LENS(KN,MY)
|
|
kusano |
2b45e8 |
* .. Initialize all argument arrays ..
|
|
kusano |
2b45e8 |
DO 20 I = 1, 7
|
|
kusano |
2b45e8 |
SX(I) = DX1(I)
|
|
kusano |
2b45e8 |
SY(I) = DY1(I)
|
|
kusano |
2b45e8 |
20 CONTINUE
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
IF (ICASE.EQ.1) THEN
|
|
kusano |
2b45e8 |
* .. SDOT ..
|
|
kusano |
2b45e8 |
CALL STEST1(SDOT(N,SX,INCX,SY,INCY),DT7(KN,KI),SSIZE1(KN)
|
|
kusano |
2b45e8 |
+ ,SFAC)
|
|
kusano |
2b45e8 |
ELSE IF (ICASE.EQ.2) THEN
|
|
kusano |
2b45e8 |
* .. SAXPY ..
|
|
kusano |
2b45e8 |
CALL SAXPY(N,SA,SX,INCX,SY,INCY)
|
|
kusano |
2b45e8 |
DO 40 J = 1, LENY
|
|
kusano |
2b45e8 |
STY(J) = DT8(J,KN,KI)
|
|
kusano |
2b45e8 |
40 CONTINUE
|
|
kusano |
2b45e8 |
CALL STEST(LENY,SY,STY,SSIZE2(1,KSIZE),SFAC)
|
|
kusano |
2b45e8 |
ELSE IF (ICASE.EQ.5) THEN
|
|
kusano |
2b45e8 |
* .. SCOPY ..
|
|
kusano |
2b45e8 |
DO 60 I = 1, 7
|
|
kusano |
2b45e8 |
STY(I) = DT10Y(I,KN,KI)
|
|
kusano |
2b45e8 |
60 CONTINUE
|
|
kusano |
2b45e8 |
CALL SCOPY(N,SX,INCX,SY,INCY)
|
|
kusano |
2b45e8 |
CALL STEST(LENY,SY,STY,SSIZE2(1,1),1.0E0)
|
|
kusano |
2b45e8 |
ELSE IF (ICASE.EQ.6) THEN
|
|
kusano |
2b45e8 |
* .. SSWAP ..
|
|
kusano |
2b45e8 |
CALL SSWAP(N,SX,INCX,SY,INCY)
|
|
kusano |
2b45e8 |
DO 80 I = 1, 7
|
|
kusano |
2b45e8 |
STX(I) = DT10X(I,KN,KI)
|
|
kusano |
2b45e8 |
STY(I) = DT10Y(I,KN,KI)
|
|
kusano |
2b45e8 |
80 CONTINUE
|
|
kusano |
2b45e8 |
CALL STEST(LENX,SX,STX,SSIZE2(1,1),1.0E0)
|
|
kusano |
2b45e8 |
CALL STEST(LENY,SY,STY,SSIZE2(1,1),1.0E0)
|
|
kusano |
2b45e8 |
ELSE
|
|
kusano |
2b45e8 |
WRITE (NOUT,*) ' Shouldn''t be here in CHECK2'
|
|
kusano |
2b45e8 |
STOP
|
|
kusano |
2b45e8 |
END IF
|
|
kusano |
2b45e8 |
100 CONTINUE
|
|
kusano |
2b45e8 |
120 CONTINUE
|
|
kusano |
2b45e8 |
RETURN
|
|
kusano |
2b45e8 |
END
|
|
kusano |
2b45e8 |
SUBROUTINE CHECK3(SFAC)
|
|
kusano |
2b45e8 |
* .. Parameters ..
|
|
kusano |
2b45e8 |
INTEGER NOUT
|
|
kusano |
2b45e8 |
PARAMETER (NOUT=6)
|
|
kusano |
2b45e8 |
* .. Scalar Arguments ..
|
|
kusano |
2b45e8 |
REAL SFAC
|
|
kusano |
2b45e8 |
* .. Scalars in Common ..
|
|
kusano |
2b45e8 |
INTEGER ICASE, INCX, INCY, MODE, N
|
|
kusano |
2b45e8 |
LOGICAL PASS
|
|
kusano |
2b45e8 |
* .. Local Scalars ..
|
|
kusano |
2b45e8 |
REAL SA, SC, SS
|
|
kusano |
2b45e8 |
INTEGER I, K, KI, KN, KSIZE, LENX, LENY, MX, MY
|
|
kusano |
2b45e8 |
* .. Local Arrays ..
|
|
kusano |
2b45e8 |
REAL COPYX(5), COPYY(5), DT9X(7,4,4), DT9Y(7,4,4),
|
|
kusano |
2b45e8 |
+ DX1(7), DY1(7), MWPC(11), MWPS(11), MWPSTX(5),
|
|
kusano |
2b45e8 |
+ MWPSTY(5), MWPTX(11,5), MWPTY(11,5), MWPX(5),
|
|
kusano |
2b45e8 |
+ MWPY(5), SSIZE2(14,2), STX(7), STY(7), SX(7),
|
|
kusano |
2b45e8 |
+ SY(7)
|
|
kusano |
2b45e8 |
INTEGER INCXS(4), INCYS(4), LENS(4,2), MWPINX(11),
|
|
kusano |
2b45e8 |
+ MWPINY(11), MWPN(11), NS(4)
|
|
kusano |
2b45e8 |
* .. External Subroutines ..
|
|
kusano |
2b45e8 |
EXTERNAL SROT, STEST
|
|
kusano |
2b45e8 |
* .. Intrinsic Functions ..
|
|
kusano |
2b45e8 |
INTRINSIC ABS, MIN
|
|
kusano |
2b45e8 |
* .. Common blocks ..
|
|
kusano |
2b45e8 |
COMMON /COMBLA/ICASE, N, INCX, INCY, MODE, PASS
|
|
kusano |
2b45e8 |
* .. Data statements ..
|
|
kusano |
2b45e8 |
DATA SA/0.3E0/
|
|
kusano |
2b45e8 |
DATA INCXS/1, 2, -2, -1/
|
|
kusano |
2b45e8 |
DATA INCYS/1, -2, 1, -2/
|
|
kusano |
2b45e8 |
DATA LENS/1, 1, 2, 4, 1, 1, 3, 7/
|
|
kusano |
2b45e8 |
DATA NS/0, 1, 2, 4/
|
|
kusano |
2b45e8 |
DATA DX1/0.6E0, 0.1E0, -0.5E0, 0.8E0, 0.9E0, -0.3E0,
|
|
kusano |
2b45e8 |
+ -0.4E0/
|
|
kusano |
2b45e8 |
DATA DY1/0.5E0, -0.9E0, 0.3E0, 0.7E0, -0.6E0, 0.2E0,
|
|
kusano |
2b45e8 |
+ 0.8E0/
|
|
kusano |
2b45e8 |
DATA SC, SS/0.8E0, 0.6E0/
|
|
kusano |
2b45e8 |
DATA DT9X/0.6E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.78E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.78E0, -0.46E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.0E0, 0.78E0, -0.46E0, -0.22E0,
|
|
kusano |
2b45e8 |
+ 1.06E0, 0.0E0, 0.0E0, 0.0E0, 0.6E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.78E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.66E0, 0.1E0, -0.1E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.96E0, 0.1E0, -0.76E0, 0.8E0, 0.90E0,
|
|
kusano |
2b45e8 |
+ -0.3E0, -0.02E0, 0.6E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.0E0, 0.78E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.0E0, 0.0E0, -0.06E0, 0.1E0,
|
|
kusano |
2b45e8 |
+ -0.1E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.90E0,
|
|
kusano |
2b45e8 |
+ 0.1E0, -0.22E0, 0.8E0, 0.18E0, -0.3E0, -0.02E0,
|
|
kusano |
2b45e8 |
+ 0.6E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.78E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.78E0, 0.26E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.78E0, 0.26E0, -0.76E0, 1.12E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.0E0/
|
|
kusano |
2b45e8 |
DATA DT9Y/0.5E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.04E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.04E0, -0.78E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.0E0, 0.04E0, -0.78E0, 0.54E0,
|
|
kusano |
2b45e8 |
+ 0.08E0, 0.0E0, 0.0E0, 0.0E0, 0.5E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.04E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.7E0,
|
|
kusano |
2b45e8 |
+ -0.9E0, -0.12E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.64E0, -0.9E0, -0.30E0, 0.7E0, -0.18E0, 0.2E0,
|
|
kusano |
2b45e8 |
+ 0.28E0, 0.5E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.04E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.0E0, 0.7E0, -1.08E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.64E0, -1.26E0,
|
|
kusano |
2b45e8 |
+ 0.54E0, 0.20E0, 0.0E0, 0.0E0, 0.0E0, 0.5E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.04E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.04E0, -0.9E0, 0.18E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.04E0, -0.9E0, 0.18E0, 0.7E0,
|
|
kusano |
2b45e8 |
+ -0.18E0, 0.2E0, 0.16E0/
|
|
kusano |
2b45e8 |
DATA SSIZE2/0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0, 0.0E0,
|
|
kusano |
2b45e8 |
+ 0.0E0, 1.17E0, 1.17E0, 1.17E0, 1.17E0, 1.17E0,
|
|
kusano |
2b45e8 |
+ 1.17E0, 1.17E0, 1.17E0, 1.17E0, 1.17E0, 1.17E0,
|
|
kusano |
2b45e8 |
+ 1.17E0, 1.17E0, 1.17E0/
|
|
kusano |
2b45e8 |
* .. Executable Statements ..
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
DO 60 KI = 1, 4
|
|
kusano |
2b45e8 |
INCX = INCXS(KI)
|
|
kusano |
2b45e8 |
INCY = INCYS(KI)
|
|
kusano |
2b45e8 |
MX = ABS(INCX)
|
|
kusano |
2b45e8 |
MY = ABS(INCY)
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
DO 40 KN = 1, 4
|
|
kusano |
2b45e8 |
N = NS(KN)
|
|
kusano |
2b45e8 |
KSIZE = MIN(2,KN)
|
|
kusano |
2b45e8 |
LENX = LENS(KN,MX)
|
|
kusano |
2b45e8 |
LENY = LENS(KN,MY)
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
IF (ICASE.EQ.4) THEN
|
|
kusano |
2b45e8 |
* .. SROT ..
|
|
kusano |
2b45e8 |
DO 20 I = 1, 7
|
|
kusano |
2b45e8 |
SX(I) = DX1(I)
|
|
kusano |
2b45e8 |
SY(I) = DY1(I)
|
|
kusano |
2b45e8 |
STX(I) = DT9X(I,KN,KI)
|
|
kusano |
2b45e8 |
STY(I) = DT9Y(I,KN,KI)
|
|
kusano |
2b45e8 |
20 CONTINUE
|
|
kusano |
2b45e8 |
CALL SROT(N,SX,INCX,SY,INCY,SC,SS)
|
|
kusano |
2b45e8 |
CALL STEST(LENX,SX,STX,SSIZE2(1,KSIZE),SFAC)
|
|
kusano |
2b45e8 |
CALL STEST(LENY,SY,STY,SSIZE2(1,KSIZE),SFAC)
|
|
kusano |
2b45e8 |
ELSE
|
|
kusano |
2b45e8 |
WRITE (NOUT,*) ' Shouldn''t be here in CHECK3'
|
|
kusano |
2b45e8 |
STOP
|
|
kusano |
2b45e8 |
END IF
|
|
kusano |
2b45e8 |
40 CONTINUE
|
|
kusano |
2b45e8 |
60 CONTINUE
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
MWPC(1) = 1
|
|
kusano |
2b45e8 |
DO 80 I = 2, 11
|
|
kusano |
2b45e8 |
MWPC(I) = 0
|
|
kusano |
2b45e8 |
80 CONTINUE
|
|
kusano |
2b45e8 |
MWPS(1) = 0
|
|
kusano |
2b45e8 |
DO 100 I = 2, 6
|
|
kusano |
2b45e8 |
MWPS(I) = 1
|
|
kusano |
2b45e8 |
100 CONTINUE
|
|
kusano |
2b45e8 |
DO 120 I = 7, 11
|
|
kusano |
2b45e8 |
MWPS(I) = -1
|
|
kusano |
2b45e8 |
120 CONTINUE
|
|
kusano |
2b45e8 |
MWPINX(1) = 1
|
|
kusano |
2b45e8 |
MWPINX(2) = 1
|
|
kusano |
2b45e8 |
MWPINX(3) = 1
|
|
kusano |
2b45e8 |
MWPINX(4) = -1
|
|
kusano |
2b45e8 |
MWPINX(5) = 1
|
|
kusano |
2b45e8 |
MWPINX(6) = -1
|
|
kusano |
2b45e8 |
MWPINX(7) = 1
|
|
kusano |
2b45e8 |
MWPINX(8) = 1
|
|
kusano |
2b45e8 |
MWPINX(9) = -1
|
|
kusano |
2b45e8 |
MWPINX(10) = 1
|
|
kusano |
2b45e8 |
MWPINX(11) = -1
|
|
kusano |
2b45e8 |
MWPINY(1) = 1
|
|
kusano |
2b45e8 |
MWPINY(2) = 1
|
|
kusano |
2b45e8 |
MWPINY(3) = -1
|
|
kusano |
2b45e8 |
MWPINY(4) = -1
|
|
kusano |
2b45e8 |
MWPINY(5) = 2
|
|
kusano |
2b45e8 |
MWPINY(6) = 1
|
|
kusano |
2b45e8 |
MWPINY(7) = 1
|
|
kusano |
2b45e8 |
MWPINY(8) = -1
|
|
kusano |
2b45e8 |
MWPINY(9) = -1
|
|
kusano |
2b45e8 |
MWPINY(10) = 2
|
|
kusano |
2b45e8 |
MWPINY(11) = 1
|
|
kusano |
2b45e8 |
DO 140 I = 1, 11
|
|
kusano |
2b45e8 |
MWPN(I) = 5
|
|
kusano |
2b45e8 |
140 CONTINUE
|
|
kusano |
2b45e8 |
MWPN(5) = 3
|
|
kusano |
2b45e8 |
MWPN(10) = 3
|
|
kusano |
2b45e8 |
DO 160 I = 1, 5
|
|
kusano |
2b45e8 |
MWPX(I) = I
|
|
kusano |
2b45e8 |
MWPY(I) = I
|
|
kusano |
2b45e8 |
MWPTX(1,I) = I
|
|
kusano |
2b45e8 |
MWPTY(1,I) = I
|
|
kusano |
2b45e8 |
MWPTX(2,I) = I
|
|
kusano |
2b45e8 |
MWPTY(2,I) = -I
|
|
kusano |
2b45e8 |
MWPTX(3,I) = 6 - I
|
|
kusano |
2b45e8 |
MWPTY(3,I) = I - 6
|
|
kusano |
2b45e8 |
MWPTX(4,I) = I
|
|
kusano |
2b45e8 |
MWPTY(4,I) = -I
|
|
kusano |
2b45e8 |
MWPTX(6,I) = 6 - I
|
|
kusano |
2b45e8 |
MWPTY(6,I) = I - 6
|
|
kusano |
2b45e8 |
MWPTX(7,I) = -I
|
|
kusano |
2b45e8 |
MWPTY(7,I) = I
|
|
kusano |
2b45e8 |
MWPTX(8,I) = I - 6
|
|
kusano |
2b45e8 |
MWPTY(8,I) = 6 - I
|
|
kusano |
2b45e8 |
MWPTX(9,I) = -I
|
|
kusano |
2b45e8 |
MWPTY(9,I) = I
|
|
kusano |
2b45e8 |
MWPTX(11,I) = I - 6
|
|
kusano |
2b45e8 |
MWPTY(11,I) = 6 - I
|
|
kusano |
2b45e8 |
160 CONTINUE
|
|
kusano |
2b45e8 |
MWPTX(5,1) = 1
|
|
kusano |
2b45e8 |
MWPTX(5,2) = 3
|
|
kusano |
2b45e8 |
MWPTX(5,3) = 5
|
|
kusano |
2b45e8 |
MWPTX(5,4) = 4
|
|
kusano |
2b45e8 |
MWPTX(5,5) = 5
|
|
kusano |
2b45e8 |
MWPTY(5,1) = -1
|
|
kusano |
2b45e8 |
MWPTY(5,2) = 2
|
|
kusano |
2b45e8 |
MWPTY(5,3) = -2
|
|
kusano |
2b45e8 |
MWPTY(5,4) = 4
|
|
kusano |
2b45e8 |
MWPTY(5,5) = -3
|
|
kusano |
2b45e8 |
MWPTX(10,1) = -1
|
|
kusano |
2b45e8 |
MWPTX(10,2) = -3
|
|
kusano |
2b45e8 |
MWPTX(10,3) = -5
|
|
kusano |
2b45e8 |
MWPTX(10,4) = 4
|
|
kusano |
2b45e8 |
MWPTX(10,5) = 5
|
|
kusano |
2b45e8 |
MWPTY(10,1) = 1
|
|
kusano |
2b45e8 |
MWPTY(10,2) = 2
|
|
kusano |
2b45e8 |
MWPTY(10,3) = 2
|
|
kusano |
2b45e8 |
MWPTY(10,4) = 4
|
|
kusano |
2b45e8 |
MWPTY(10,5) = 3
|
|
kusano |
2b45e8 |
DO 200 I = 1, 11
|
|
kusano |
2b45e8 |
INCX = MWPINX(I)
|
|
kusano |
2b45e8 |
INCY = MWPINY(I)
|
|
kusano |
2b45e8 |
DO 180 K = 1, 5
|
|
kusano |
2b45e8 |
COPYX(K) = MWPX(K)
|
|
kusano |
2b45e8 |
COPYY(K) = MWPY(K)
|
|
kusano |
2b45e8 |
MWPSTX(K) = MWPTX(I,K)
|
|
kusano |
2b45e8 |
MWPSTY(K) = MWPTY(I,K)
|
|
kusano |
2b45e8 |
180 CONTINUE
|
|
kusano |
2b45e8 |
CALL SROT(MWPN(I),COPYX,INCX,COPYY,INCY,MWPC(I),MWPS(I))
|
|
kusano |
2b45e8 |
CALL STEST(5,COPYX,MWPSTX,MWPSTX,SFAC)
|
|
kusano |
2b45e8 |
CALL STEST(5,COPYY,MWPSTY,MWPSTY,SFAC)
|
|
kusano |
2b45e8 |
200 CONTINUE
|
|
kusano |
2b45e8 |
RETURN
|
|
kusano |
2b45e8 |
END
|
|
kusano |
2b45e8 |
SUBROUTINE STEST(LEN,SCOMP,STRUE,SSIZE,SFAC)
|
|
kusano |
2b45e8 |
* ********************************* STEST **************************
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
* THIS SUBR COMPARES ARRAYS SCOMP() AND STRUE() OF LENGTH LEN TO
|
|
kusano |
2b45e8 |
* SEE IF THE TERM BY TERM DIFFERENCES, MULTIPLIED BY SFAC, ARE
|
|
kusano |
2b45e8 |
* NEGLIGIBLE.
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
* C. L. LAWSON, JPL, 1974 DEC 10
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
* .. Parameters ..
|
|
kusano |
2b45e8 |
INTEGER NOUT
|
|
kusano |
2b45e8 |
PARAMETER (NOUT=6)
|
|
kusano |
2b45e8 |
* .. Scalar Arguments ..
|
|
kusano |
2b45e8 |
REAL SFAC
|
|
kusano |
2b45e8 |
INTEGER LEN
|
|
kusano |
2b45e8 |
* .. Array Arguments ..
|
|
kusano |
2b45e8 |
REAL SCOMP(LEN), SSIZE(LEN), STRUE(LEN)
|
|
kusano |
2b45e8 |
* .. Scalars in Common ..
|
|
kusano |
2b45e8 |
INTEGER ICASE, INCX, INCY, MODE, N
|
|
kusano |
2b45e8 |
LOGICAL PASS
|
|
kusano |
2b45e8 |
* .. Local Scalars ..
|
|
kusano |
2b45e8 |
REAL SD
|
|
kusano |
2b45e8 |
INTEGER I
|
|
kusano |
2b45e8 |
* .. External Functions ..
|
|
kusano |
2b45e8 |
REAL SDIFF
|
|
kusano |
2b45e8 |
EXTERNAL SDIFF
|
|
kusano |
2b45e8 |
* .. Intrinsic Functions ..
|
|
kusano |
2b45e8 |
INTRINSIC ABS
|
|
kusano |
2b45e8 |
* .. Common blocks ..
|
|
kusano |
2b45e8 |
COMMON /COMBLA/ICASE, N, INCX, INCY, MODE, PASS
|
|
kusano |
2b45e8 |
* .. Executable Statements ..
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
DO 40 I = 1, LEN
|
|
kusano |
2b45e8 |
SD = SCOMP(I) - STRUE(I)
|
|
kusano |
2b45e8 |
IF (SDIFF(ABS(SSIZE(I))+ABS(SFAC*SD),ABS(SSIZE(I))).EQ.0.0E0)
|
|
kusano |
2b45e8 |
+ GO TO 40
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
* HERE SCOMP(I) IS NOT CLOSE TO STRUE(I).
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
IF ( .NOT. PASS) GO TO 20
|
|
kusano |
2b45e8 |
* PRINT FAIL MESSAGE AND HEADER.
|
|
kusano |
2b45e8 |
PASS = .FALSE.
|
|
kusano |
2b45e8 |
WRITE (NOUT,99999)
|
|
kusano |
2b45e8 |
WRITE (NOUT,99998)
|
|
kusano |
2b45e8 |
20 WRITE (NOUT,99997) ICASE, N, INCX, INCY, MODE, I, SCOMP(I),
|
|
kusano |
2b45e8 |
+ STRUE(I), SD, SSIZE(I)
|
|
kusano |
2b45e8 |
40 CONTINUE
|
|
kusano |
2b45e8 |
RETURN
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
99999 FORMAT (' FAIL')
|
|
kusano |
2b45e8 |
99998 FORMAT (/' CASE N INCX INCY MODE I ',
|
|
kusano |
2b45e8 |
+ ' COMP(I) TRUE(I) DIFFERENCE',
|
|
kusano |
2b45e8 |
+ ' SIZE(I)',/1X)
|
|
kusano |
2b45e8 |
99997 FORMAT (1X,I4,I3,3I5,I3,2E36.8,2E12.4)
|
|
kusano |
2b45e8 |
END
|
|
kusano |
2b45e8 |
SUBROUTINE STEST1(SCOMP1,STRUE1,SSIZE,SFAC)
|
|
kusano |
2b45e8 |
* ************************* STEST1 *****************************
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
* THIS IS AN INTERFACE SUBROUTINE TO ACCOMODATE THE FORTRAN
|
|
kusano |
2b45e8 |
* REQUIREMENT THAT WHEN A DUMMY ARGUMENT IS AN ARRAY, THE
|
|
kusano |
2b45e8 |
* ACTUAL ARGUMENT MUST ALSO BE AN ARRAY OR AN ARRAY ELEMENT.
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
* C.L. LAWSON, JPL, 1978 DEC 6
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
* .. Scalar Arguments ..
|
|
kusano |
2b45e8 |
REAL SCOMP1, SFAC, STRUE1
|
|
kusano |
2b45e8 |
* .. Array Arguments ..
|
|
kusano |
2b45e8 |
REAL SSIZE(*)
|
|
kusano |
2b45e8 |
* .. Local Arrays ..
|
|
kusano |
2b45e8 |
REAL SCOMP(1), STRUE(1)
|
|
kusano |
2b45e8 |
* .. External Subroutines ..
|
|
kusano |
2b45e8 |
EXTERNAL STEST
|
|
kusano |
2b45e8 |
* .. Executable Statements ..
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
SCOMP(1) = SCOMP1
|
|
kusano |
2b45e8 |
STRUE(1) = STRUE1
|
|
kusano |
2b45e8 |
CALL STEST(1,SCOMP,STRUE,SSIZE,SFAC)
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
RETURN
|
|
kusano |
2b45e8 |
END
|
|
kusano |
2b45e8 |
REAL FUNCTION SDIFF(SA,SB)
|
|
kusano |
2b45e8 |
* ********************************* SDIFF **************************
|
|
kusano |
2b45e8 |
* COMPUTES DIFFERENCE OF TWO NUMBERS. C. L. LAWSON, JPL 1974 FEB 15
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
* .. Scalar Arguments ..
|
|
kusano |
2b45e8 |
REAL SA, SB
|
|
kusano |
2b45e8 |
* .. Executable Statements ..
|
|
kusano |
2b45e8 |
SDIFF = SA - SB
|
|
kusano |
2b45e8 |
RETURN
|
|
kusano |
2b45e8 |
END
|
|
kusano |
2b45e8 |
SUBROUTINE ITEST1(ICOMP,ITRUE)
|
|
kusano |
2b45e8 |
* ********************************* ITEST1 *************************
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
* THIS SUBROUTINE COMPARES THE VARIABLES ICOMP AND ITRUE FOR
|
|
kusano |
2b45e8 |
* EQUALITY.
|
|
kusano |
2b45e8 |
* C. L. LAWSON, JPL, 1974 DEC 10
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
* .. Parameters ..
|
|
kusano |
2b45e8 |
INTEGER NOUT
|
|
kusano |
2b45e8 |
PARAMETER (NOUT=6)
|
|
kusano |
2b45e8 |
* .. Scalar Arguments ..
|
|
kusano |
2b45e8 |
INTEGER ICOMP, ITRUE
|
|
kusano |
2b45e8 |
* .. Scalars in Common ..
|
|
kusano |
2b45e8 |
INTEGER ICASE, INCX, INCY, MODE, N
|
|
kusano |
2b45e8 |
LOGICAL PASS
|
|
kusano |
2b45e8 |
* .. Local Scalars ..
|
|
kusano |
2b45e8 |
INTEGER ID
|
|
kusano |
2b45e8 |
* .. Common blocks ..
|
|
kusano |
2b45e8 |
COMMON /COMBLA/ICASE, N, INCX, INCY, MODE, PASS
|
|
kusano |
2b45e8 |
* .. Executable Statements ..
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
IF (ICOMP.EQ.ITRUE) GO TO 40
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
* HERE ICOMP IS NOT EQUAL TO ITRUE.
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
IF ( .NOT. PASS) GO TO 20
|
|
kusano |
2b45e8 |
* PRINT FAIL MESSAGE AND HEADER.
|
|
kusano |
2b45e8 |
PASS = .FALSE.
|
|
kusano |
2b45e8 |
WRITE (NOUT,99999)
|
|
kusano |
2b45e8 |
WRITE (NOUT,99998)
|
|
kusano |
2b45e8 |
20 ID = ICOMP - ITRUE
|
|
kusano |
2b45e8 |
WRITE (NOUT,99997) ICASE, N, INCX, INCY, MODE, ICOMP, ITRUE, ID
|
|
kusano |
2b45e8 |
40 CONTINUE
|
|
kusano |
2b45e8 |
RETURN
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
99999 FORMAT (' FAIL')
|
|
kusano |
2b45e8 |
99998 FORMAT (/' CASE N INCX INCY MODE ',
|
|
kusano |
2b45e8 |
+ ' COMP TRUE DIFFERENCE',
|
|
kusano |
2b45e8 |
+ /1X)
|
|
kusano |
2b45e8 |
99997 FORMAT (1X,I4,I3,3I5,2I36,I12)
|
|
kusano |
2b45e8 |
END
|