1 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
5 C Authors: Paul N. Swarztrauber and Richard A. Valent
9 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
11 SUBROUTINE COST1F
( N
, INC
, X
, LENX
, WSAVE
, LENSAV
,
13 INTEGER N
, INC
, LENX
, LENSAV
, LENWRK
, IER
14 REAL X
(INC
,*), WSAVE
(LENSAV
), WORK
(LENWRK
)
17 IF (LENX
.LT
. INC*
(N
-1) + 1) THEN
19 CALL XERFFT
('COST1F', 6)
21 ELSEIF
(LENSAV
.LT
. 2*N
+ INT
(LOG
(REAL(N
))/LOG
(2.)) +4) THEN
23 CALL XERFFT
('COST1F', 8)
25 ELSEIF
(LENWRK
.LT
. N
-1) THEN
27 CALL XERFFT
('COST1F', 10)
33 CALL COSTF1
(N
,INC
,X
,WSAVE
,WORK
,IER1
)
36 CALL XERFFT
('COST1F',-5)