I'm compiling a G77/GNU FORTRAN code developed in Linux to work with Intel Fortran in Windows. I got a strange assignments in the code to modify the DO loop index such as I+1=M or I-1=N where I in the index of the DO loop. This is not accepted by Intel Fortran compiler. The modification of the loop index is also not allowed in Intel Fortran compiler. What are the equivalent code in Intel Fortran for these assignments?
The code is as follows:
DO L=2,LA
I=IL(L)
J=JL(L)
IF(IJCT(I-1,J).EQ.9)THEN
L-1=LC
ELSE
L-1=LIJ(I-1,J)
L-1=MAX(L-1,1)
ENDIF
IF(IJCT(I+1,J).EQ.9)THEN
L+1=LC
ELSE
L+1=LIJ(I+1,J)
L+1=MAX(L+1,1)
ENDIF
ENDDO