1 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
5 C Authors: Paul N. Swarztrauber and Richard A. Valent
9 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
11 SUBROUTINE C1F3KB
(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 .OR
. NA
.EQ
.1) GO TO 102
17 TR2
= CC
(1,K
,1,2)+CC
(1,K
,1,3)
18 CR2
= CC
(1,K
,1,1)+TAUR*TR2
19 CC
(1,K
,1,1) = CC
(1,K
,1,1)+TR2
20 TI2
= CC
(2,K
,1,2)+CC
(2,K
,1,3)
21 CI2
= CC
(2,K
,1,1)+TAUR*TI2
22 CC
(2,K
,1,1) = CC
(2,K
,1,1)+TI2
23 CR3
= TAUI*
(CC
(1,K
,1,2)-CC
(1,K
,1,3))
24 CI3
= TAUI*
(CC
(2,K
,1,2)-CC
(2,K
,1,3))
32 TR2
= CC
(1,K
,1,2)+CC
(1,K
,1,3)
33 CR2
= CC
(1,K
,1,1)+TAUR*TR2
34 CH
(1,K
,1,1) = CC
(1,K
,1,1)+TR2
35 TI2
= CC
(2,K
,1,2)+CC
(2,K
,1,3)
36 CI2
= CC
(2,K
,1,1)+TAUR*TI2
37 CH
(2,K
,1,1) = CC
(2,K
,1,1)+TI2
38 CR3
= TAUI*
(CC
(1,K
,1,2)-CC
(1,K
,1,3))
39 CI3
= TAUI*
(CC
(2,K
,1,2)-CC
(2,K
,1,3))
45 IF (IDO
.EQ
. 1) RETURN
48 TR2
= CC
(1,K
,I
,2)+CC
(1,K
,I
,3)
49 CR2
= CC
(1,K
,I
,1)+TAUR*TR2
50 CH
(1,K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