1 | !CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC |
---|
2 | ! |
---|
3 | ! FFTPACK 5.0 |
---|
4 | ! |
---|
5 | ! Authors: Paul N. Swarztrauber and Richard A. Valent |
---|
6 | ! |
---|
7 | ! $Id: c1f2kb.f,v 1.2 2004/06/15 21:08:32 rodney Exp $ |
---|
8 | ! |
---|
9 | !CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC |
---|
10 | |
---|
11 | SUBROUTINE C1F2KB (IDO,L1,NA,CC,IN1,CH,IN2,WA) |
---|
12 | REAL CC(IN1,L1,IDO,2),CH(IN2,L1,2,IDO),WA(IDO,1,2) |
---|
13 | ! |
---|
14 | IF (IDO.GT.1 .OR. NA.EQ.1) GO TO 102 |
---|
15 | DO 101 K=1,L1 |
---|
16 | CHOLD1 = CC(1,K,1,1)+CC(1,K,1,2) |
---|
17 | CC(1,K,1,2) = CC(1,K,1,1)-CC(1,K,1,2) |
---|
18 | CC(1,K,1,1) = CHOLD1 |
---|
19 | CHOLD2 = CC(2,K,1,1)+CC(2,K,1,2) |
---|
20 | CC(2,K,1,2) = CC(2,K,1,1)-CC(2,K,1,2) |
---|
21 | CC(2,K,1,1) = CHOLD2 |
---|
22 | 101 END DO |
---|
23 | RETURN |
---|
24 | 102 DO 103 K=1,L1 |
---|
25 | CH(1,K,1,1) = CC(1,K,1,1)+CC(1,K,1,2) |
---|
26 | CH(1,K,2,1) = CC(1,K,1,1)-CC(1,K,1,2) |
---|
27 | CH(2,K,1,1) = CC(2,K,1,1)+CC(2,K,1,2) |
---|
28 | CH(2,K,2,1) = CC(2,K,1,1)-CC(2,K,1,2) |
---|
29 | 103 END DO |
---|
30 | IF(IDO .EQ. 1) RETURN |
---|
31 | DO 105 I=2,IDO |
---|
32 | DO 104 K=1,L1 |
---|
33 | CH(1,K,1,I) = CC(1,K,I,1)+CC(1,K,I,2) |
---|
34 | TR2 = CC(1,K,I,1)-CC(1,K,I,2) |
---|
35 | CH(2,K,1,I) = CC(2,K,I,1)+CC(2,K,I,2) |
---|
36 | TI2 = CC(2,K,I,1)-CC(2,K,I,2) |
---|
37 | CH(2,K,2,I) = WA(I,1,1)*TI2+WA(I,1,2)*TR2 |
---|
38 | CH(1,K,2,I) = WA(I,1,1)*TR2-WA(I,1,2)*TI2 |
---|
39 | 104 CONTINUE |
---|
40 | 105 END DO |
---|
41 | RETURN |
---|
42 | END |
---|