[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: rfftmb.f,v 1.2 2004/06/15 21:29:20 rodney Exp $ |
---|
| 11 | ! |
---|
| 12 | !CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC |
---|
| 13 | |
---|
| 14 | SUBROUTINE RFFTMB (LOT, JUMP, N, INC, R, LENR, WSAVE, LENSAV, & |
---|
| 15 | & WORK, LENWRK, IER) |
---|
| 16 | INTEGER LOT, JUMP, N, INC, LENR, LENSAV, LENWRK, IER |
---|
| 17 | REAL R(LENR), WSAVE(LENSAV) ,WORK(LENWRK) |
---|
| 18 | LOGICAL XERCON |
---|
| 19 | ! |
---|
| 20 | IER = 0 |
---|
| 21 | ! |
---|
| 22 | IF (LENR .LT. (LOT-1)*JUMP + INC*(N-1) + 1) THEN |
---|
| 23 | IER = 1 |
---|
| 24 | CALL XERFFT ('RFFTMB ', 6) |
---|
| 25 | ELSEIF (LENSAV .LT. N + INT(LOG(REAL(N))) +4) THEN |
---|
| 26 | IER = 2 |
---|
| 27 | CALL XERFFT ('RFFTMB ', 8) |
---|
| 28 | ELSEIF (LENWRK .LT. LOT*N) THEN |
---|
| 29 | IER = 3 |
---|
| 30 | CALL XERFFT ('RFFTMB ', 10) |
---|
| 31 | ELSEIF (.NOT. XERCON(INC,JUMP,N,LOT)) THEN |
---|
| 32 | IER = 4 |
---|
| 33 | CALL XERFFT ('RFFTMB ', -1) |
---|
| 34 | ENDIF |
---|
| 35 | ! |
---|
| 36 | IF (N .EQ. 1) RETURN |
---|
| 37 | ! |
---|
| 38 | CALL MRFTB1 (LOT,JUMP,N,INC,R,WORK,WSAVE,WSAVE(N+1)) |
---|
| 39 | RETURN |
---|
| 40 | END |
---|