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