1 | !CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC |
---|
2 | ! |
---|
3 | ! FFTPACK 5.0 |
---|
4 | ! |
---|
5 | ! Authors: Paul N. Swarztrauber and Richard A. Valent |
---|
6 | ! |
---|
7 | ! $Id: sint1f.f,v 1.2 2004/06/15 21:29:20 rodney Exp $ |
---|
8 | ! |
---|
9 | !CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC |
---|
10 | |
---|
11 | SUBROUTINE SINT1F ( N, INC, X, LENX, WSAVE, LENSAV, & |
---|
12 | & WORK, LENWRK, IER) |
---|
13 | INTEGER N, INC, LENX, LENSAV, LENWRK, IER |
---|
14 | REAL X(INC,*), WSAVE(LENSAV), WORK(LENWRK) |
---|
15 | ! |
---|
16 | IER = 0 |
---|
17 | IF (LENX .LT. INC*(N-1) + 1) THEN |
---|
18 | IER = 1 |
---|
19 | CALL XERFFT ('SINT1F', 6) |
---|
20 | GO TO 100 |
---|
21 | ELSEIF (LENSAV .LT. N/2 + N + INT(LOG(REAL(N))) +4) THEN |
---|
22 | IER = 2 |
---|
23 | CALL XERFFT ('SINT1F', 8) |
---|
24 | GO TO 100 |
---|
25 | ELSEIF (LENWRK .LT. (2*N+2)) THEN |
---|
26 | IER = 3 |
---|
27 | CALL XERFFT ('SINT1F', 10) |
---|
28 | GO TO 100 |
---|
29 | ENDIF |
---|
30 | ! |
---|
31 | CALL SINTF1(N,INC,X,WSAVE,WORK,WORK(N+2),IER1) |
---|
32 | IF (IER1 .NE. 0) THEN |
---|
33 | IER = 20 |
---|
34 | CALL XERFFT ('SINT1F',-5) |
---|
35 | ENDIF |
---|
36 | 100 CONTINUE |
---|
37 | RETURN |
---|
38 | END |
---|