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