1 | !CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC |
---|
2 | ! |
---|
3 | ! FFTPACK 5.0 |
---|
4 | ! Copyright (C) 1995-2004, Scientific Computing Division, |
---|
5 | ! University Corporation for Atmospheric Research |
---|
6 | ! Licensed under the GNU General Public License (GPL) |
---|
7 | ! |
---|
8 | ! Authors: Paul N. Swarztrauber and Richard A. Valent |
---|
9 | ! |
---|
10 | ! $Id: c1f3kb.f,v 1.2 2004/06/15 21:08:32 rodney Exp $ |
---|
11 | ! |
---|
12 | !CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC |
---|
13 | |
---|
14 | SUBROUTINE C1F3KB (IDO,L1,NA,CC,IN1,CH,IN2,WA) |
---|
15 | REAL CC(IN1,L1,IDO,3),CH(IN2,L1,3,IDO),WA(IDO,2,2) |
---|
16 | DATA TAUR,TAUI /-.5,.866025403784439/ |
---|
17 | ! |
---|
18 | IF (IDO.GT.1 .OR. NA.EQ.1) GO TO 102 |
---|
19 | DO 101 K=1,L1 |
---|
20 | TR2 = CC(1,K,1,2)+CC(1,K,1,3) |
---|
21 | CR2 = CC(1,K,1,1)+TAUR*TR2 |
---|
22 | CC(1,K,1,1) = CC(1,K,1,1)+TR2 |
---|
23 | TI2 = CC(2,K,1,2)+CC(2,K,1,3) |
---|
24 | CI2 = CC(2,K,1,1)+TAUR*TI2 |
---|
25 | CC(2,K,1,1) = CC(2,K,1,1)+TI2 |
---|
26 | CR3 = TAUI*(CC(1,K,1,2)-CC(1,K,1,3)) |
---|
27 | CI3 = TAUI*(CC(2,K,1,2)-CC(2,K,1,3)) |
---|
28 | CC(1,K,1,2) = CR2-CI3 |
---|
29 | CC(1,K,1,3) = CR2+CI3 |
---|
30 | CC(2,K,1,2) = CI2+CR3 |
---|
31 | CC(2,K,1,3) = CI2-CR3 |
---|
32 | 101 END DO |
---|
33 | RETURN |
---|
34 | 102 DO 103 K=1,L1 |
---|
35 | TR2 = CC(1,K,1,2)+CC(1,K,1,3) |
---|
36 | CR2 = CC(1,K,1,1)+TAUR*TR2 |
---|
37 | CH(1,K,1,1) = CC(1,K,1,1)+TR2 |
---|
38 | TI2 = CC(2,K,1,2)+CC(2,K,1,3) |
---|
39 | CI2 = CC(2,K,1,1)+TAUR*TI2 |
---|
40 | CH(2,K,1,1) = CC(2,K,1,1)+TI2 |
---|
41 | CR3 = TAUI*(CC(1,K,1,2)-CC(1,K,1,3)) |
---|
42 | CI3 = TAUI*(CC(2,K,1,2)-CC(2,K,1,3)) |
---|
43 | CH(1,K,2,1) = CR2-CI3 |
---|
44 | CH(1,K,3,1) = CR2+CI3 |
---|
45 | CH(2,K,2,1) = CI2+CR3 |
---|
46 | CH(2,K,3,1) = CI2-CR3 |
---|
47 | 103 END DO |
---|
48 | IF (IDO .EQ. 1) RETURN |
---|
49 | DO 105 I=2,IDO |
---|
50 | DO 104 K=1,L1 |
---|
51 | TR2 = CC(1,K,I,2)+CC(1,K,I,3) |
---|
52 | CR2 = CC(1,K,I,1)+TAUR*TR2 |
---|
53 | CH(1,K,1,I) = CC(1,K,I,1)+TR2 |
---|
54 | TI2 = CC(2,K,I,2)+CC(2,K,I,3) |
---|
55 | CI2 = CC(2,K,I,1)+TAUR*TI2 |
---|
56 | CH(2,K,1,I) = CC(2,K,I,1)+TI2 |
---|
57 | CR3 = TAUI*(CC(1,K,I,2)-CC(1,K,I,3)) |
---|
58 | CI3 = TAUI*(CC(2,K,I,2)-CC(2,K,I,3)) |
---|
59 | DR2 = CR2-CI3 |
---|
60 | DR3 = CR2+CI3 |
---|
61 | DI2 = CI2+CR3 |
---|
62 | DI3 = CI2-CR3 |
---|
63 | CH(2,K,2,I) = WA(I,1,1)*DI2+WA(I,1,2)*DR2 |
---|
64 | CH(1,K,2,I) = WA(I,1,1)*DR2-WA(I,1,2)*DI2 |
---|
65 | CH(2,K,3,I) = WA(I,2,1)*DI3+WA(I,2,2)*DR3 |
---|
66 | CH(1,K,3,I) = WA(I,2,1)*DR3-WA(I,2,2)*DI3 |
---|
67 | 104 CONTINUE |
---|
68 | 105 END DO |
---|
69 | RETURN |
---|
70 | END |
---|