[2759] | 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: r1f3kf.f,v 1.2 2004/06/15 21:29:20 rodney Exp $ |
---|
| 11 | ! |
---|
| 12 | !CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC |
---|
| 13 | |
---|
| 14 | SUBROUTINE R1F3KF (IDO,L1,CC,IN1,CH,IN2,WA1,WA2) |
---|
| 15 | REAL CH(IN2,IDO,3,L1) ,CC(IN1,IDO,L1,3) , & |
---|
| 16 | & WA1(IDO) ,WA2(IDO) |
---|
| 17 | ! |
---|
| 18 | ARG=2.*4.*ATAN(1.0)/3. |
---|
| 19 | TAUR=COS(ARG) |
---|
| 20 | TAUI=SIN(ARG) |
---|
| 21 | DO 101 K=1,L1 |
---|
| 22 | CH(1,1,1,K) = CC(1,1,K,1)+(CC(1,1,K,2)+CC(1,1,K,3)) |
---|
| 23 | CH(1,1,3,K) = TAUI*(CC(1,1,K,3)-CC(1,1,K,2)) |
---|
| 24 | CH(1,IDO,2,K) = CC(1,1,K,1)+TAUR* & |
---|
| 25 | & (CC(1,1,K,2)+CC(1,1,K,3)) |
---|
| 26 | 101 END DO |
---|
| 27 | IF (IDO .EQ. 1) RETURN |
---|
| 28 | IDP2 = IDO+2 |
---|
| 29 | DO 103 K=1,L1 |
---|
| 30 | DO 102 I=3,IDO,2 |
---|
| 31 | IC = IDP2-I |
---|
| 32 | CH(1,I-1,1,K) = CC(1,I-1,K,1)+((WA1(I-2)*CC(1,I-1,K,2)+ & |
---|
| 33 | & WA1(I-1)*CC(1,I,K,2))+(WA2(I-2)*CC(1,I-1,K,3)+WA2(I-1)* & |
---|
| 34 | & CC(1,I,K,3))) |
---|
| 35 | CH(1,I,1,K) = CC(1,I,K,1)+((WA1(I-2)*CC(1,I,K,2)- & |
---|
| 36 | & WA1(I-1)*CC(1,I-1,K,2))+(WA2(I-2)*CC(1,I,K,3)-WA2(I-1)* & |
---|
| 37 | & CC(1,I-1,K,3))) |
---|
| 38 | CH(1,I-1,3,K) = (CC(1,I-1,K,1)+TAUR*((WA1(I-2)* & |
---|
| 39 | & CC(1,I-1,K,2)+WA1(I-1)*CC(1,I,K,2))+(WA2(I-2)* & |
---|
| 40 | & CC(1,I-1,K,3)+WA2(I-1)*CC(1,I,K,3))))+(TAUI*((WA1(I-2)* & |
---|
| 41 | & CC(1,I,K,2)-WA1(I-1)*CC(1,I-1,K,2))-(WA2(I-2)* & |
---|
| 42 | & CC(1,I,K,3)-WA2(I-1)*CC(1,I-1,K,3)))) |
---|
| 43 | CH(1,IC-1,2,K) = (CC(1,I-1,K,1)+TAUR*((WA1(I-2)* & |
---|
| 44 | & CC(1,I-1,K,2)+WA1(I-1)*CC(1,I,K,2))+(WA2(I-2)* & |
---|
| 45 | & CC(1,I-1,K,3)+WA2(I-1)*CC(1,I,K,3))))-(TAUI*((WA1(I-2)* & |
---|
| 46 | & CC(1,I,K,2)-WA1(I-1)*CC(1,I-1,K,2))-(WA2(I-2)* & |
---|
| 47 | & CC(1,I,K,3)-WA2(I-1)*CC(1,I-1,K,3)))) |
---|
| 48 | CH(1,I,3,K) = (CC(1,I,K,1)+TAUR*((WA1(I-2)*CC(1,I,K,2)- & |
---|
| 49 | & WA1(I-1)*CC(1,I-1,K,2))+(WA2(I-2)*CC(1,I,K,3)-WA2(I-1)* & |
---|
| 50 | & CC(1,I-1,K,3))))+(TAUI*((WA2(I-2)*CC(1,I-1,K,3)+WA2(I-1)* & |
---|
| 51 | & CC(1,I,K,3))-(WA1(I-2)*CC(1,I-1,K,2)+WA1(I-1)* & |
---|
| 52 | & CC(1,I,K,2)))) |
---|
| 53 | CH(1,IC,2,K) = (TAUI*((WA2(I-2)*CC(1,I-1,K,3)+WA2(I-1)* & |
---|
| 54 | & CC(1,I,K,3))-(WA1(I-2)*CC(1,I-1,K,2)+WA1(I-1)* & |
---|
| 55 | & CC(1,I,K,2))))-(CC(1,I,K,1)+TAUR*((WA1(I-2)*CC(1,I,K,2)- & |
---|
| 56 | & WA1(I-1)*CC(1,I-1,K,2))+(WA2(I-2)*CC(1,I,K,3)-WA2(I-1)* & |
---|
| 57 | & CC(1,I-1,K,3)))) |
---|
| 58 | 102 CONTINUE |
---|
| 59 | 103 END DO |
---|
| 60 | RETURN |
---|
| 61 | END |
---|