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: c1f2kb.f,v 1.2 2004/06/15 21:08:32 rodney Exp $ |
---|
11 | ! |
---|
12 | !CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC |
---|
13 | |
---|
14 | SUBROUTINE C1F2KB (IDO,L1,NA,CC,IN1,CH,IN2,WA) |
---|
15 | REAL CC(IN1,L1,IDO,2),CH(IN2,L1,2,IDO),WA(IDO,1,2) |
---|
16 | ! |
---|
17 | IF (IDO.GT.1 .OR. NA.EQ.1) GO TO 102 |
---|
18 | DO 101 K=1,L1 |
---|
19 | CHOLD1 = CC(1,K,1,1)+CC(1,K,1,2) |
---|
20 | CC(1,K,1,2) = CC(1,K,1,1)-CC(1,K,1,2) |
---|
21 | CC(1,K,1,1) = CHOLD1 |
---|
22 | CHOLD2 = CC(2,K,1,1)+CC(2,K,1,2) |
---|
23 | CC(2,K,1,2) = CC(2,K,1,1)-CC(2,K,1,2) |
---|
24 | CC(2,K,1,1) = CHOLD2 |
---|
25 | 101 END DO |
---|
26 | RETURN |
---|
27 | 102 DO 103 K=1,L1 |
---|
28 | CH(1,K,1,1) = CC(1,K,1,1)+CC(1,K,1,2) |
---|
29 | CH(1,K,2,1) = CC(1,K,1,1)-CC(1,K,1,2) |
---|
30 | CH(2,K,1,1) = CC(2,K,1,1)+CC(2,K,1,2) |
---|
31 | CH(2,K,2,1) = CC(2,K,1,1)-CC(2,K,1,2) |
---|
32 | 103 END DO |
---|
33 | IF(IDO .EQ. 1) RETURN |
---|
34 | DO 105 I=2,IDO |
---|
35 | DO 104 K=1,L1 |
---|
36 | CH(1,K,1,I) = CC(1,K,I,1)+CC(1,K,I,2) |
---|
37 | TR2 = CC(1,K,I,1)-CC(1,K,I,2) |
---|
38 | CH(2,K,1,I) = CC(2,K,I,1)+CC(2,K,I,2) |
---|
39 | TI2 = CC(2,K,I,1)-CC(2,K,I,2) |
---|
40 | CH(2,K,2,I) = WA(I,1,1)*TI2+WA(I,1,2)*TR2 |
---|
41 | CH(1,K,2,I) = WA(I,1,1)*TR2-WA(I,1,2)*TI2 |
---|
42 | 104 CONTINUE |
---|
43 | 105 END DO |
---|
44 | RETURN |
---|
45 | END |
---|