1 subroutine mradf2 ( m, ido, l1, cc, im1, in1, ch, im2, in2, wa1 )
3 !*****************************************************************************80
5 !! MRADF2 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
41 real ( kind = 4 ) cc(in1,ido,l1,2)
42 real ( kind = 4 ) ch(in2,ido,2,l1)
43 integer ( kind = 4 ) i
44 integer ( kind = 4 ) ic
45 integer ( kind = 4 ) idp2
46 integer ( kind = 4 ) im1
47 integer ( kind = 4 ) im2
48 integer ( kind = 4 ) k
49 integer ( kind = 4 ) m
50 integer ( kind = 4 ) m1
51 integer ( kind = 4 ) m1d
52 integer ( kind = 4 ) m2
53 integer ( kind = 4 ) m2s
54 real ( kind = 4 ) wa1(ido)
56 m1d = ( m - 1 ) * im1 + 1
63 ch(m2,1,1,k) = cc(m1,1,k,1) + cc(m1,1,k,2)
64 ch(m2,ido,2,k) = cc(m1,1,k,1) - cc(m1,1,k,2)
82 ch(m2,i,1,k) = cc(m1,i,k,1) + ( wa1(i-2) * cc(m1,i,k,2) &
83 - wa1(i-1) * cc(m1,i-1,k,2) )
84 ch(m2,ic,2,k) = -cc(m1,i,k,1) + ( wa1(i-2) * cc(m1,i,k,2) &
85 - wa1(i-1) * cc(m1,i-1,k,2) )
86 ch(m2,i-1,1,k) = cc(m1,i-1,k,1) + ( wa1(i-2) * cc(m1,i-1,k,2) &
87 + wa1(i-1) * cc(m1,i,k,2))
88 ch(m2,ic-1,2,k) = cc(m1,i-1,k,1) - ( wa1(i-2) * cc(m1,i-1,k,2) &
89 + wa1(i-1) * cc(m1,i,k,2) )
94 if ( mod ( ido, 2 ) == 1 ) then
104 ch(m2,1,2,k) = -cc(m1,ido,k,2)
105 ch(m2,ido,1,k) = cc(m1,ido,k,1)