1 | !CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC |
---|
2 | ! |
---|
3 | ! FFTPACK 5.0 |
---|
4 | ! |
---|
5 | ! Authors: Paul N. Swarztrauber and Richard A. Valent |
---|
6 | ! |
---|
7 | ! $Id: c1f3kb.f,v 1.2 2004/06/15 21:08:32 rodney Exp $ |
---|
8 | ! |
---|
9 | !CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC |
---|
10 | |
---|
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/ |
---|
14 | ! |
---|
15 | IF (IDO.GT.1 .OR. NA.EQ.1) GO TO 102 |
---|
16 | DO 101 K=1,L1 |
---|
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)) |
---|
25 | CC(1,K,1,2) = CR2-CI3 |
---|
26 | CC(1,K,1,3) = CR2+CI3 |
---|
27 | CC(2,K,1,2) = CI2+CR3 |
---|
28 | CC(2,K,1,3) = CI2-CR3 |
---|
29 | 101 END DO |
---|
30 | RETURN |
---|
31 | 102 DO 103 K=1,L1 |
---|
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)) |
---|
40 | CH(1,K,2,1) = CR2-CI3 |
---|
41 | CH(1,K,3,1) = CR2+CI3 |
---|
42 | CH(2,K,2,1) = CI2+CR3 |
---|
43 | CH(2,K,3,1) = CI2-CR3 |
---|
44 | 103 END DO |
---|
45 | IF (IDO .EQ. 1) RETURN |
---|
46 | DO 105 I=2,IDO |
---|
47 | DO 104 K=1,L1 |
---|
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,1,I) = CC(1,K,I,1)+TR2 |
---|
51 | TI2 = CC(2,K,I,2)+CC(2,K,I,3) |
---|
52 | CI2 = CC(2,K,I,1)+TAUR*TI2 |
---|
53 | CH(2,K,1,I) = CC(2,K,I,1)+TI2 |
---|
54 | CR3 = TAUI*(CC(1,K,I,2)-CC(1,K,I,3)) |
---|
55 | CI3 = TAUI*(CC(2,K,I,2)-CC(2,K,I,3)) |
---|
56 | DR2 = CR2-CI3 |
---|
57 | DR3 = CR2+CI3 |
---|
58 | DI2 = CI2+CR3 |
---|
59 | DI3 = CI2-CR3 |
---|
60 | CH(2,K,2,I) = WA(I,1,1)*DI2+WA(I,1,2)*DR2 |
---|
61 | CH(1,K,2,I) = WA(I,1,1)*DR2-WA(I,1,2)*DI2 |
---|
62 | CH(2,K,3,I) = WA(I,2,1)*DI3+WA(I,2,2)*DR3 |
---|
63 | CH(1,K,3,I) = WA(I,2,1)*DR3-WA(I,2,2)*DI3 |
---|
64 | 104 CONTINUE |
---|
65 | 105 END DO |
---|
66 | RETURN |
---|
67 | END |
---|