1 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
5 C Authors: Paul N. Swarztrauber and Richard A. Valent
9 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
11 LOGICAL FUNCTION XERCON
(INC
,JUMP
,N
,LOT
)
12 INTEGER INC
, JUMP
, N
, LOT
13 INTEGER I
, J
, JNEW
, LCM
15 C Definition: positive integers INC, JUMP, N and LOT are consistent
17 C if I1*INC + J1*JUMP = I2*INC + J2*JUMP for I1,I2 < N and J1,J2
18 C < LOT implies I1=I2 and J1=J2.
20 C For multiple FFTs to execute correctly, input parameters INC,
21 C JUMP, N and LOT must be consistent ... otherwise at least one
22 C array element mistakenly is transformed more than once.
24 C XERCON = .TRUE. if and only if INC, JUMP, N and LOT are
27 C ------------------------------------------------------------------
29 C Compute I = greatest common divisor (INC, JUMP)
41 C Compute LCM = least common multiple (INC, JUMP)
45 C Check consistency of INC, JUMP, N, LOT
47 IF (LCM
.LE
. (N
-1)*INC
.AND
. LCM
.LE
. (LOT
-1)*JUMP
) THEN