Rename *ll* and *ul* to ll and ul in in-interval
[maxima.git] / share / fftpack5 / fortran / sint1b.f
blobc6cf959eaf93b31da5bd2cd3bfde2a28dd12eb21
1 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
3 C FFTPACK 5.0
5 C Authors: Paul N. Swarztrauber and Richard A. Valent
7 C $Id$
9 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
11 SUBROUTINE SINT1B ( N, INC, X, LENX, WSAVE, LENSAV,
12 1 WORK, LENWRK, IER)
13 INTEGER N, INC, LENX, LENSAV, LENWRK, IER
14 REAL X(INC,*), WSAVE(LENSAV), WORK(LENWRK)
16 IER = 0
18 IF (LENX .LT. INC*(N-1) + 1) THEN
19 IER = 1
20 CALL XERFFT ('SINT1B', 6)
21 GO TO 100
22 ELSEIF (LENSAV .LT. N/2 + N + INT(LOG(REAL(N))/LOG(2.)) +4) THEN
23 IER = 2
24 CALL XERFFT ('SINT1B', 8)
25 GO TO 100
26 ELSEIF (LENWRK .LT. (2*N+2)) THEN
27 IER = 3
28 CALL XERFFT ('SINT1B', 10)
29 GO TO 100
30 ENDIF
32 CALL SINTB1(N,INC,X,WSAVE,WORK,WORK(N+2),IER1)
33 IF (IER1 .NE. 0) THEN
34 IER = 20
35 CALL XERFFT ('SINT1B',-5)
36 ENDIF
38 100 CONTINUE
39 RETURN
40 END