1 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
5 C Authors: Paul N. Swarztrauber and Richard A. Valent
9 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
11 SUBROUTINE C1F3KF
(IDO
,L1
,NA
,CC
,IN1
,CH
,IN2
,WA
)
12 REAL CC
(IN1
,L1
,IDO
,3),CH
(IN2
,L1
,3,IDO
),WA
(IDO
,2,2)
13 DATA TAUR
,TAUI
/-.5,-.866025403784439/
15 IF (IDO
.GT
. 1) GO TO 102
17 IF (NA
.EQ
. 1) GO TO 106
19 TR2
= CC
(1,K
,1,2)+CC
(1,K
,1,3)
20 CR2
= CC
(1,K
,1,1)+TAUR*TR2
21 CC
(1,K
,1,1) = SN*
(CC
(1,K
,1,1)+TR2
)
22 TI2
= CC
(2,K
,1,2)+CC
(2,K
,1,3)
23 CI2
= CC
(2,K
,1,1)+TAUR*TI2
24 CC
(2,K
,1,1) = SN*
(CC
(2,K
,1,1)+TI2
)
25 CR3
= TAUI*
(CC
(1,K
,1,2)-CC
(1,K
,1,3))
26 CI3
= TAUI*
(CC
(2,K
,1,2)-CC
(2,K
,1,3))
27 CC
(1,K
,1,2) = SN*
(CR2
-CI3
)
28 CC
(1,K
,1,3) = SN*
(CR2
+CI3
)
29 CC
(2,K
,1,2) = SN*
(CI2
+CR3
)
30 CC
(2,K
,1,3) = SN*
(CI2
-CR3
)
34 TR2
= CC
(1,K
,1,2)+CC
(1,K
,1,3)
35 CR2
= CC
(1,K
,1,1)+TAUR*TR2
36 CH
(1,K
,1,1) = SN*
(CC
(1,K
,1,1)+TR2
)
37 TI2
= CC
(2,K
,1,2)+CC
(2,K
,1,3)
38 CI2
= CC
(2,K
,1,1)+TAUR*TI2
39 CH
(2,K
,1,1) = SN*
(CC
(2,K
,1,1)+TI2
)
40 CR3
= TAUI*
(CC
(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