[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: sintmb.f,v 1.2 2004/06/15 21:29:20 rodney Exp $ |
---|
| 11 | ! |
---|
| 12 | !CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC |
---|
| 13 | |
---|
| 14 | SUBROUTINE SINTMB (LOT, JUMP, N, INC, X, LENX, WSAVE, LENSAV, & |
---|
| 15 | & WORK, LENWRK, IER) |
---|
| 16 | INTEGER LOT, JUMP, N, INC, LENX, LENSAV, LENWRK, IER |
---|
| 17 | REAL X(INC,*), WSAVE(LENSAV), WORK(LENWRK) |
---|
| 18 | LOGICAL XERCON |
---|
| 19 | ! |
---|
| 20 | IER = 0 |
---|
| 21 | ! |
---|
| 22 | IF (LENX .LT. (LOT-1)*JUMP + INC*(N-1) + 1) THEN |
---|
| 23 | IER = 1 |
---|
| 24 | CALL XERFFT ('SINTMB', 6) |
---|
| 25 | GO TO 100 |
---|
| 26 | ELSEIF (LENSAV .LT. N/2 + N + INT(LOG(REAL(N))) +4) THEN |
---|
| 27 | IER = 2 |
---|
| 28 | CALL XERFFT ('SINTMB', 8) |
---|
| 29 | GO TO 100 |
---|
| 30 | ELSEIF (LENWRK .LT. LOT*(2*N+4)) THEN |
---|
| 31 | IER = 3 |
---|
| 32 | CALL XERFFT ('SINTMB', 10) |
---|
| 33 | GO TO 100 |
---|
| 34 | ELSEIF (.NOT. XERCON(INC,JUMP,N,LOT)) THEN |
---|
| 35 | IER = 4 |
---|
| 36 | CALL XERFFT ('SINTMB', -1) |
---|
| 37 | GO TO 100 |
---|
| 38 | ENDIF |
---|
| 39 | ! |
---|
| 40 | IW1 = LOT+LOT+1 |
---|
| 41 | IW2 = IW1+LOT*(N+1) |
---|
| 42 | CALL MSNTB1(LOT,JUMP,N,INC,X,WSAVE,WORK,WORK(IW1),WORK(IW2),IER1) |
---|
| 43 | IF (IER1 .NE. 0) THEN |
---|
| 44 | IER = 20 |
---|
| 45 | CALL XERFFT ('SINTMB',-5) |
---|
| 46 | ENDIF |
---|
| 47 | ! |
---|
| 48 | 100 CONTINUE |
---|
| 49 | RETURN |
---|
| 50 | END |
---|