1 subroutine mcsqf1 ( lot, jump, n, inc, x, wsave, work, ier )
3 !*****************************************************************************80
5 !! MCSQF1 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 ) inc
37 integer ( kind = 4 ) lot
39 integer ( kind = 4 ) i
40 integer ( kind = 4 ) ier
41 integer ( kind = 4 ) ier1
42 integer ( kind = 4 ) jump
43 integer ( kind = 4 ) k
44 integer ( kind = 4 ) kc
45 integer ( kind = 4 ) lenx
46 integer ( kind = 4 ) lnsv
47 integer ( kind = 4 ) lnwk
48 integer ( kind = 4 ) lj
49 integer ( kind = 4 ) m
50 integer ( kind = 4 ) m1
51 integer ( kind = 4 ) modn
52 integer ( kind = 4 ) n
53 integer ( kind = 4 ) np2
54 integer ( kind = 4 ) ns2
55 real ( kind = 4 ) work(lot,*)
56 real ( kind = 4 ) wsave(*)
57 real ( kind = 4 ) x(inc,*)
58 real ( kind = 4 ) xim1
61 lj = ( lot - 1 ) * jump + 1
70 work(m1,k) = x(m,k) + x(m,kc)
71 work(m1,kc) = x(m,k) - x(m,kc)
81 work(m1,ns2+1) = x(m,ns2+1) + x(m,ns2+1)
90 x(m,k) = wsave(k-1) * work(m1,kc) + wsave(kc-1) * work(m1,k)
91 x(m,kc) = wsave(k-1) * work(m1,k) - wsave(kc-1) * work(m1,kc)
99 x(m,ns2+1) = wsave(ns2) * work(m1,ns2+1)
103 lenx = ( lot - 1 ) * jump + inc * ( n - 1 ) + 1
104 lnsv = n + int ( log ( real ( n, kind = 4 ) ) ) + 4
107 call rfftmf ( lot, jump, n, inc, x, lenx, wsave(n+1), lnsv, work, lnwk, ier1 )
109 if ( ier1 /= 0 ) then
111 call xerfft ( 'mcsqf1', -5 )
117 xim1 = 0.5E+00 * ( x(m,i-1) + x(m,i) )
118 x(m,i) = 0.5E+00 * ( x(m,i-1) - x(m,i) )