1 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
5 C Authors: Paul N. Swarztrauber and Richard A. Valent
9 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
11 SUBROUTINE RFFTB1
(N
,IN
,C
,CH
,WA
,FAC
)
12 REAL CH
(*), C
(IN
,*), WA
(N
) ,FAC
(15)
19 IF(IP
.LE
. 5) GO TO 10
20 IF(K1
.EQ
. NF
) GO TO 10
27 IF(MODN
.NE
. 0) NL
= N
-1
28 IF (NA
.EQ
. 0) GO TO 120
33 CH
(J
+1) = HALFM*C
(1,J
+1)
38 C
(1,J
+1) = HALFM*C
(1,J
+1)
47 IF (IP
.NE
. 4) GO TO 103
50 IF (NA
.NE
. 0) GO TO 101
51 CALL R1F4KB
(IDO
,L1
,C
,IN
,CH
,1,WA
(IW
),WA
(IX2
),WA
(IX3
))
53 101 CALL R1F4KB
(IDO
,L1
,CH
,1,C
,IN
,WA
(IW
),WA
(IX2
),WA
(IX3
))
56 103 IF (IP
.NE
. 2) GO TO 106
57 IF (NA
.NE
. 0) GO TO 104
58 CALL R1F2KB
(IDO
,L1
,C
,IN
,CH
,1,WA
(IW
))
60 104 CALL R1F2KB
(IDO
,L1
,CH
,1,C
,IN
,WA
(IW
))
63 106 IF (IP
.NE
. 3) GO TO 109
65 IF (NA
.NE
. 0) GO TO 107
66 C rav CALL RIF3KB (IDO,L1,C,IN,CH,1,WA(IW),WA(IX2))
67 CALL R1F3KB
(IDO
,L1
,C
,IN
,CH
,1,WA
(IW
),WA
(IX2
))
69 107 CALL R1F3KB
(IDO
,L1
,CH
,1,C
,IN
,WA
(IW
),WA
(IX2
))
72 109 IF (IP
.NE
. 5) GO TO 112
76 IF (NA
.NE
. 0) GO TO 110
77 CALL R1F5KB
(IDO
,L1
,C
,IN
,CH
,1,WA
(IW
),WA
(IX2
),
80 110 CALL R1F5KB
(IDO
,L1
,CH
,1,C
,IN
,WA
(IW
),WA
(IX2
),
84 112 IF (NA
.NE
. 0) GO TO 113
85 C rav CALL RIFGKB (IDO,IP,L1,IDL1,C,C,C,IN,CH,CH,1,WA(IW))
86 CALL R1FGKB
(IDO
,IP
,L1
,IDL1
,C
,C
,C
,IN
,CH
,CH
,1,WA
(IW
))
88 C rav 113 CALL RIFGKB (IDO,IP,L1,IDL1,CH,CH,CH,1,C,C,IN,WA(IW))
89 113 CALL R1FGKB
(IDO
,IP
,L1
,IDL1
,CH
,CH
,CH
,1,C
,C
,IN
,WA
(IW
))
90 114 IF (IDO
.EQ
. 1) NA
= 1-NA