Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

help me in Do -continue loop

boobalanc
Beginner
496 Views
DO 9300 MJ=1,M3(I)
RTOL(I)=RTOL(I)+TFINAL(M4(I,MJ))-- line 1
9300 SRT(I)=SRT(I)+TFINAL(M4(I,MJ))---- line 2

My problem is whether the line 2 is included in the loop are not. In other words, line 2 is executed each time or executed only when the loop terminates.pls some one help me in this issue.

thanks
0 Kudos
2 Replies
ArturGuzik
Valued Contributor I
496 Views
It is included (executed each time).

I understand that you're porting/updating the (very old) code. This way of coding is treated as obsolete (as far as I can remember compiler produces a warning message for that statement) and should be replaced with

DO i=1, n
....

END DO


A.
0 Kudos
boobalanc
Beginner
496 Views
thanks man.It is very helpfull to me.


thanks a lot
0 Kudos
Reply