[2759] | 1 | !CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC |
---|
| 2 | ! |
---|
| 3 | ! FFTPACK 5.0 |
---|
| 4 | ! Copyright (C) 1995-2004, Scientific Computing Division, |
---|
| 5 | ! University Corporation for Atmospheric Research |
---|
| 6 | ! Licensed under the GNU General Public License (GPL) |
---|
| 7 | ! |
---|
| 8 | ! Authors: Paul N. Swarztrauber and Richard A. Valent |
---|
| 9 | ! |
---|
| 10 | ! $Id: rfft1f.f,v 1.2 2004/06/15 21:29:20 rodney Exp $ |
---|
| 11 | ! |
---|
| 12 | !CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC |
---|
| 13 | |
---|
| 14 | SUBROUTINE RFFT1F ( N, INC, R, LENR, WSAVE, LENSAV, & |
---|
| 15 | & WORK, LENWRK, IER) |
---|
| 16 | INTEGER N, INC, LENR, LENSAV, LENWRK, IER |
---|
| 17 | REAL R(LENR), WSAVE(LENSAV), WORK(LENWRK) |
---|
| 18 | ! |
---|
| 19 | IER = 0 |
---|
| 20 | ! |
---|
| 21 | IF (LENR .LT. INC*(N-1) + 1) THEN |
---|
| 22 | IER = 1 |
---|
| 23 | CALL XERFFT ('RFFT1F ', 6) |
---|
| 24 | ELSEIF (LENSAV .LT. N + INT(LOG(REAL(N))) +4) THEN |
---|
| 25 | IER = 2 |
---|
| 26 | CALL XERFFT ('RFFT1F ', 8) |
---|
| 27 | ELSEIF (LENWRK .LT. N) THEN |
---|
| 28 | IER = 3 |
---|
| 29 | CALL XERFFT ('RFFT1F ', 10) |
---|
| 30 | ENDIF |
---|
| 31 | ! |
---|
| 32 | IF (N .EQ. 1) RETURN |
---|
| 33 | ! |
---|
| 34 | CALL RFFTF1 (N,INC,R,WORK,WSAVE,WSAVE(N+1)) |
---|
| 35 | RETURN |
---|
| 36 | END |
---|