The section of code looks like this;
DO i = 1 , no2 + 1 IF ( Isign.EQ.1 ) THEN Ans(i) = fft(i)*Ans(i)/no2 ELSEIF ( Isign.EQ.-1 ) THEN IF ( ABS(Ans(i)) .EQ. 0.0 ) & PAUSE ' deconvolving at responce zero in convlv' Ans(i) = fft(i)/Ans(i)/no2 ELSE The compiler is giving me this error; IF ( ABS(i)).EQ. 0.0) ^ Type disagreement between expressions at (^) and (^)
IF ( ABS(i)).EQ. 0.0) ^ invalid form for IF statement at (^) Can someone tell me how to write this "Intrisic function" line correctly to solve this error? I am new to programing and any help would be great! I am using the GNU G77 compiler if that matters? Thanks