Rename *ll* and *ul* to ll and ul in in-interval
[maxima.git] / share / fftpack5 / fortran / rfftmb.f
blob90ecb910916017573ba2f6a3da174cc2c3a41910
1 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
3 C FFTPACK 5.0
5 C Authors: Paul N. Swarztrauber and Richard A. Valent
7 C $Id$
9 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
11 SUBROUTINE RFFTMB (LOT, JUMP, N, INC, R, LENR, WSAVE, LENSAV,
12 1 WORK, LENWRK, IER)
13 INTEGER LOT, JUMP, N, INC, LENR, LENSAV, LENWRK, IER
14 REAL R(LENR), WSAVE(LENSAV) ,WORK(LENWRK)
15 LOGICAL XERCON
17 IER = 0
19 IF (LENR .LT. (LOT-1)*JUMP + INC*(N-1) + 1) THEN
20 IER = 1
21 CALL XERFFT ('RFFTMB ', 6)
22 ELSEIF (LENSAV .LT. N + INT(LOG(REAL(N))/LOG(2.)) +4) THEN
23 IER = 2
24 CALL XERFFT ('RFFTMB ', 8)
25 ELSEIF (LENWRK .LT. LOT*N) THEN
26 IER = 3
27 CALL XERFFT ('RFFTMB ', 10)
28 ELSEIF (.NOT. XERCON(INC,JUMP,N,LOT)) THEN
29 IER = 4
30 CALL XERFFT ('RFFTMB ', -1)
31 ENDIF
33 IF (N .EQ. 1) RETURN
35 CALL MRFTB1 (LOT,JUMP,N,INC,R,WORK,WSAVE,WSAVE(N+1))
36 RETURN
37 END