1 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
5 C Authors: Paul N. Swarztrauber and Richard A. Valent
9 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
11 SUBROUTINE C1F4KF
(IDO
,L1
,NA
,CC
,IN1
,CH
,IN2
,WA
)
12 REAL CC
(IN1
,L1
,IDO
,4),CH
(IN2
,L1
,4,IDO
),WA
(IDO
,3,2)
14 C FFTPACK 5.0 auxiliary routine
16 IF (IDO
.GT
. 1) GO TO 102
18 IF (NA
.EQ
. 1) GO TO 106
20 TI1
= CC
(2,K
,1,1)-CC
(2,K
,1,3)
21 TI2
= CC
(2,K
,1,1)+CC
(2,K
,1,3)
22 TR4
= CC
(2,K
,1,2)-CC
(2,K
,1,4)
23 TI3
= CC
(2,K
,1,2)+CC
(2,K
,1,4)
24 TR1
= CC
(1,K
,1,1)-CC
(1,K
,1,3)
25 TR2
= CC
(1,K
,1,1)+CC
(1,K
,1,3)
26 TI4
= CC
(1,K
,1,4)-CC
(1,K
,1,2)
27 TR3
= CC
(1,K
,1,2)+CC
(1,K
,1,4)
28 CC
(1,K
,1,1) = SN*
(TR2
+TR3
)
29 CC
(1,K
,1,3) = SN*
(TR2
-TR3
)
30 CC
(2,K
,1,1) = SN*
(TI2
+TI3
)
31 CC
(2,K
,1,3) = SN*
(TI2
-TI3
)
32 CC
(1,K
,1,2) = SN*
(TR1
+TR4
)
33 CC
(1,K
,1,4) = SN*
(TR1
-TR4
)
34 CC
(2,K
,1,2) = SN*
(TI1
+TI4
)
35 CC
(2,K
,1,4) = SN*
(TI1
-TI4
)
39 TI1
= CC
(2,K
,1,1)-CC
(2,K
,1,3)
40 TI2
= CC
(2,K
,1,1)+CC
(2,K
,1,3)
41 TR4
= CC
(2,K
,1,2)-CC
(2,K
,1,4)
42 TI3
= CC
(2,K
,1,2)+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