1 subroutine sintb1 ( n, inc, x, wsave, xh, work, ier )
3 !*****************************************************************************80
5 !! SINTB1 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
38 real ( kind = 8 ) dsum
39 real ( kind = 4 ) fnp1s4
40 integer ( kind = 4 ) i
41 integer ( kind = 4 ) ier
42 integer ( kind = 4 ) ier1
43 integer ( kind = 4 ) k
44 integer ( kind = 4 ) kc
45 integer ( kind = 4 ) lnsv
46 integer ( kind = 4 ) lnwk
47 integer ( kind = 4 ) lnxh
48 integer ( kind = 4 ) modn
49 integer ( kind = 4 ) n
50 integer ( kind = 4 ) np1
51 integer ( kind = 4 ) ns2
52 real ( kind = 4 ) srt3s2
55 real ( kind = 4 ) work(*)
56 real ( kind = 4 ) wsave(*)
57 real ( kind = 4 ) x(inc,*)
58 real ( kind = 4 ) xh(*)
59 real ( kind = 4 ) xhold
68 srt3s2 = sqrt ( 3.0E+00 ) / 2.0E+00
69 xhold = srt3s2 * ( x(1,1) + x(1,2) )
70 x(1,2) = srt3s2 * ( x(1,1) - x(1,2) )
81 t2 = wsave(k) * ( x(1,k) + x(1,kc) )
89 xh(ns2+2) = 4.0E+00 * x(1,ns2+1)
94 lnsv = np1 + int ( log ( real ( np1, kind = 4 ) ) ) + 4
97 call rfft1f ( np1, 1, xh, lnxh, wsave(ns2+1), lnsv, work, lnwk, ier1 )
101 call xerfft ( 'sintb1', -5 )
105 if ( mod ( np1, 2 ) == 0 ) then
106 xh(np1) = xh(np1) + xh(np1)
109 fnp1s4 = real ( np1, kind = 4 ) / 4.0E+00
110 x(1,1) = fnp1s4 * xh(1)
114 x(1,i-1) = fnp1s4 * xh(i)
115 dsum = dsum + fnp1s4 * xh(i-1)
119 if ( modn == 0 ) then
120 x(1,n) = fnp1s4 * xh(n+1)