[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: c1fm1f.f,v 1.2 2004/06/15 21:08:32 rodney Exp $ |
---|
| 11 | ! |
---|
| 12 | !CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC |
---|
| 13 | |
---|
| 14 | SUBROUTINE C1FM1F (N,INC,C,CH,WA,FNF,FAC) |
---|
| 15 | COMPLEX C(*) |
---|
| 16 | REAL CH(*), WA(*), FAC(*) |
---|
| 17 | ! |
---|
| 18 | ! FFTPACK 5.0 auxiliary routine |
---|
| 19 | ! |
---|
| 20 | INC2 = INC+INC |
---|
| 21 | NF = FNF |
---|
| 22 | NA = 0 |
---|
| 23 | L1 = 1 |
---|
| 24 | IW = 1 |
---|
| 25 | DO 125 K1=1,NF |
---|
| 26 | IP = FAC(K1) |
---|
| 27 | L2 = IP*L1 |
---|
| 28 | IDO = N/L2 |
---|
| 29 | LID = L1*IDO |
---|
| 30 | NBR = 1+NA+2*MIN(IP-2,4) |
---|
| 31 | write(*,*) wa(iw),wa(iw+1) |
---|
| 32 | GO TO (52,62,53,63,54,64,55,65,56,66),NBR |
---|
| 33 | 52 CALL C1F2KF (IDO,L1,NA,C,INC2,CH,2,WA(IW)) |
---|
| 34 | GO TO 120 |
---|
| 35 | 62 CALL C1F2KF (IDO,L1,NA,CH,2,C,INC2,WA(IW)) |
---|
| 36 | GO TO 120 |
---|
| 37 | 53 CALL C1F3KF (IDO,L1,NA,C,INC2,CH,2,WA(IW)) |
---|
| 38 | GO TO 120 |
---|
| 39 | 63 CALL C1F3KF (IDO,L1,NA,CH,2,C,INC2,WA(IW)) |
---|
| 40 | GO TO 120 |
---|
| 41 | 54 CALL C1F4KF (IDO,L1,NA,C,INC2,CH,2,WA(IW)) |
---|
| 42 | GO TO 120 |
---|
| 43 | 64 CALL C1F4KF (IDO,L1,NA,CH,2,C,INC2,WA(IW)) |
---|
| 44 | GO TO 120 |
---|
| 45 | 55 CALL C1F5KF (IDO,L1,NA,C,INC2,CH,2,WA(IW)) |
---|
| 46 | GO TO 120 |
---|
| 47 | 65 CALL C1F5KF (IDO,L1,NA,CH,2,C,INC2,WA(IW)) |
---|
| 48 | GO TO 120 |
---|
| 49 | 56 CALL C1FGKF (IDO,IP,L1,LID,NA,C,C,INC2,CH,CH, & |
---|
| 50 | & 1,WA(IW)) |
---|
| 51 | GO TO 120 |
---|
| 52 | 66 CALL C1FGKF (IDO,IP,L1,LID,NA,CH,CH,2,C,C, & |
---|
| 53 | & INC2,WA(IW)) |
---|
| 54 | 120 L1 = L2 |
---|
| 55 | IW = IW+(IP-1)*(IDO+IDO) |
---|
| 56 | IF(IP .LE. 5) NA = 1-NA |
---|
| 57 | 125 END DO |
---|
| 58 | RETURN |
---|
| 59 | END |
---|