1 subroutine r1f3kf ( ido, l1, cc, in1, ch, in2, wa1, wa2 )
3 !*****************************************************************************80
5 !! R1F3KF 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 ) ido
37 integer ( kind = 4 ) in1
38 integer ( kind = 4 ) in2
39 integer ( kind = 4 ) l1
42 real ( kind = 4 ) cc(in1,ido,l1,3)
43 real ( kind = 4 ) ch(in2,ido,3,l1)
44 integer ( kind = 4 ) i
45 integer ( kind = 4 ) ic
46 integer ( kind = 4 ) idp2
47 integer ( kind = 4 ) k
48 real ( kind = 4 ) taui
49 real ( kind = 4 ) taur
50 real ( kind = 4 ) wa1(ido)
51 real ( kind = 4 ) wa2(ido)
53 arg = 2.0E+00 * 4.0E+00 * atan ( 1.0E+00 ) / 3.0E+00
58 ch(1,1,1,k) = cc(1,1,k,1) + ( cc(1,1,k,2) + cc(1,1,k,3) )
59 ch(1,1,3,k) = taui * ( cc(1,1,k,3) - cc(1,1,k,2) )
60 ch(1,ido,2,k) = cc(1,1,k,1) + taur * ( cc(1,1,k,2) + cc(1,1,k,3) )
72 ch(1,i-1,1,k) = cc(1,i-1,k,1)+((wa1(i-2)*cc(1,i-1,k,2)+ &
73 wa1(i-1)*cc(1,i,k,2))+(wa2(i-2)*cc(1,i-1,k,3)+wa2(i-1)* &
75 ch(1,i,1,k) = cc(1,i,k,1)+((wa1(i-2)*cc(1,i,k,2)- &
76 wa1(i-1)*cc(1,i-1,k,2))+(wa2(i-2)*cc(1,i,k,3)-wa2(i-1)* &
78 ch(1,i-1,3,k) = (cc(1,i-1,k,1)+taur*((wa1(i-2)* &
79 cc(1,i-1,k,2)+wa1(i-1)*cc(1,i,k,2))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