Rename *ll* and *ul* to ll and ul in in-interval
[maxima.git] / share / fftpack5 / fortran / cfft2i.f
blob5620a2a5c4699a03f12dfed662f053adaa4a3746
1 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
3 C FFTPACK 5.0
5 C Authors: Paul N. Swarztrauber and Richard A. Valent
7 C $Id$
9 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
11 SUBROUTINE CFFT2I (L, M, WSAVE, LENSAV, IER)
12 INTEGER L, M, IER
13 REAL WSAVE(LENSAV)
15 C Initialize error return
17 IER = 0
19 IF (LENSAV .LT. 2*L + INT(LOG(REAL(L))/LOG(2.)) +
20 1 2*M + INT(LOG(REAL(M))/LOG(2.)) +8) THEN
21 IER = 2
22 CALL XERFFT ('CFFT2I', 4)
23 GO TO 100
24 ENDIF
26 CALL CFFTMI (L, WSAVE(1), 2*L + INT(LOG(REAL(L))/LOG(2.)) + 4,
27 1 IER1)
28 IF (IER1 .NE. 0) THEN
29 IER = 20
30 CALL XERFFT ('CFFT2I',-5)
31 GO TO 100
32 ENDIF
33 CALL CFFTMI (M, WSAVE(2*L+INT(LOG(REAL(L))/LOG(2.)) + 3),
34 1 2*M + INT(LOG(REAL(M))/LOG(2.)) + 4, IER1)
35 IF (IER1 .NE. 0) THEN
36 IER = 20
37 CALL XERFFT ('CFFT2I',-5)
38 ENDIF
40 100 CONTINUE
41 RETURN
42 END