1 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
5 C Authors: Paul N. Swarztrauber and Richard A. Valent
9 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
11 SUBROUTINE COSTMF
(LOT
, JUMP
, N
, INC
, X
, LENX
, WSAVE
, LENSAV
,
13 INTEGER LOT
, JUMP
, N
, INC
, LENX
, LENSAV
, LENWRK
, IER
14 REAL X
(INC
,*), WSAVE
(LENSAV
), WORK
(LENWRK
)
19 IF (LENX
.LT
. (LOT
-1)*JUMP
+ INC*
(N
-1) + 1) THEN
21 CALL XERFFT
('COSTMF', 6)
23 ELSEIF
(LENSAV
.LT
. 2*N
+ INT
(LOG
(REAL(N
))/LOG
(2.)) +4) THEN
25 CALL XERFFT
('COSTMF', 8)
27 ELSEIF
(LENWRK
.LT
. LOT*
(N
+1)) THEN
29 CALL XERFFT
('COSTMF', 10)
31 ELSEIF
(.NOT
. XERCON
(INC
,JUMP
,N
,LOT
)) THEN
33 CALL XERFFT
('COSTMF', -1)
38 CALL MCSTF1
(LOT
,JUMP
,N
,INC
,X
,WSAVE
,WORK
,WORK
(IW1
),IER1
)
41 CALL XERFFT
('COSTMF',-5)