1 subroutine r1fgkf ( ido, ip, l1, idl1, cc, c1, c2, in1, ch, ch2, in2, wa )
3 !*****************************************************************************80
5 !! R1FGKF is an FFTPACK5 auxiliary routine.
8 ! Copyright (C) 1995-2004, Scientific Computing Division,
9 ! University Corporation for Atmospheric Research
23 ! Vectorizing the Fast Fourier Transforms,
24 ! in Parallel Computations,
25 ! edited by G. Rodrigue,
26 ! Academic Press, 1982.
29 ! Fast Fourier Transform Algorithms for Vector Computers,
30 ! Parallel Computing, pages 45-63, 1984.
36 integer ( kind = 4 ) idl1
37 integer ( kind = 4 ) ido
38 integer ( kind = 4 ) in1
39 integer ( kind = 4 ) in2
40 integer ( kind = 4 ) ip
41 integer ( kind = 4 ) l1
46 real ( kind = 4 ) ar1h
48 real ( kind = 4 ) ar2h
50 real ( kind = 4 ) c1(in1,ido,l1,ip)
51 real ( kind = 4 ) c2(in1,idl1,ip)
52 real ( kind = 4 ) cc(in1,ido,ip,l1)
53 real ( kind = 4 ) ch(in2,ido,l1,ip)
54 real ( kind = 4 ) ch2(in2,idl1,ip)
59 integer ( kind = 4 ) i
60 integer ( kind = 4 ) ic
61 integer ( kind = 4 ) idij
62 integer ( kind = 4 ) idp2
63 integer ( kind = 4 ) ik
64 integer ( kind = 4 ) ipp2
65 integer ( kind = 4 ) ipph
66 integer ( kind = 4 ) is
67 integer ( kind = 4 ) j
68 integer ( kind = 4 ) j2
69 integer ( kind = 4 ) jc
70 integer ( kind = 4 ) k
71 integer ( kind = 4 ) l
72 integer ( kind = 4 ) lc
73 integer ( kind = 4 ) nbd
75 real ( kind = 4 ) wa(ido)
77 tpi = 2.0E+00 * 4.0E+00 * atan ( 1.0E+00 )
78 arg = tpi / real ( ip, kind = 4 )
89 c2(1,ik,1) = ch2(1,ik,1)
95 ch2(1,ik,1) = c2(1,ik,1)
100 ch(1,1,k,j) = c1(1,1,k,j)
114 ch(1,i-1,k,j) = wa(idij-1)*c1(1,i-1,k,j)+wa(idij) *c1(1,i,k,j)
115 ch(1,i,k,j) = wa(idij-1)*c1(1,i,k,j)-wa(idij) *c1(1,i-1,k,j)
130 ch(1,i-1,k,j) = wa(idij-1)*c1(1,i-1,k,j)+wa(idij) *c1(1,i,k,j)
131 ch(1,i,k,j) = wa(idij-1)*c1(1,i,k,j)-wa(idij) *c1(1,i-1,k,j)
144 c1(1,i-1,k,j) = ch(1,i-1,k,j)+ch(1,i-1,k,jc)
145 c1(1,i-1,k,jc) = ch(1,i,k,j)-ch(1,i,k,jc)
146 c1(1,i,k,j) = ch(1,i,k,j)+ch(1,i,k,jc)
147 c1(1,i,k,jc) = ch(1,i-1,k,jc)-ch(1,i-1,k,j)
158 c1(1,i-1,k,j) = ch(1,i-1,k,j)+ch(1,i-1,k,jc)
159 c1(1,i-1,k,jc) = ch(1,i,k,j)-ch(1,i,k,jc)
160 c1(1,i,k,j) = ch(1,i,k,j)+ch(1,i,k,jc)
161 c1(1,i,k,jc) = ch(1,i-1,k,jc)-ch(1,i-1,k,j)
173 c1(1,1,k,j) = ch(1,1,k,j)+ch(1,1,k,jc)
174 c1(1,1,k,jc) = ch(1,1,k,jc)-ch(1,1,k,j)
184 ar1h = dcp * ar1 - dsp * ai1
185 ai1 = dcp * ai1 + dsp * ar1
189 ch2(1,ik,l) = c2(1,ik,1)+ar1*c2(1,ik,2)
190 ch2(1,ik,lc) = ai1*c2(1,ik,ip)
200 ar2h = dc2 * ar2 - ds2 * ai2
201 ai2 = dc2 * ai2 + ds2 * ar2
204 ch2(1,ik,l) = ch2(1,ik,l)+ar2*c2(1,ik,j)
205 ch2(1,ik,lc) = ch2(1,ik,lc)+ai2*c2(1,ik,jc)
213 ch2(1,ik,1) = ch2(1,ik,1)+c2(1,ik,j)
221 cc(1,i,1,k) = ch(1,i,k,1)
229 cc(1,i,1,k) = ch(1,i,k,1)
239 cc(1,ido,j2-2,k) = ch(1,1,k,j)
240 cc(1,1,j2-1,k) = ch(1,1,k,jc)
256 cc(1,i-1,j2-1,k) = ch(1,i-1,k,j)+ch(1,i-1,k,jc)
257 cc(1,ic-1,j2-2,k) = ch(1,i-1,k,j)-ch(1,i-1,k,jc)
258 cc(1,i,j2-1,k) = ch(1,i,k,j)+ch(1,i,k,jc)
259 cc(1,ic,j2-2,k) = ch(1,i,k,jc)-ch(1,i,k,j)
272 cc(1,i-1,j2-1,k) = ch(1,i-1,k,j) + ch(1,i-1,k,jc)
273 cc(1,ic-1,j2-2,k) = ch(1,i-1,k,j) - ch(1,i-1,k,jc)
274 cc(1,i,j2-1,k) = ch(1,i,k,j) + ch(1,i,k,jc)
275 cc(1,ic,j2-2,k) = ch(1,i,k,jc) - ch(1,i,k,j)