NickFort
Technical User
- Jun 10, 2010
- 113
I've been looking at the code in the DVODE_F90 module I mentioned in another thread.
It was translated from F77 to F90, I believe, so some older constructions exist. What does the following do with the "60"? "DO 60", "GOTO 60" pointing to "END DO".
Is it equivalent to?:
--------------------------------------
Background: Chemical engineer, familiar mostly with MATLAB, but now branching out into real programming.
It was translated from F77 to F90, I believe, so some older constructions exist. What does the following do with the "60"? "DO 60", "GOTO 60" pointing to "END DO".
Code:
DO 60 I = 1, NGC
IF (ABS(G0(I))>ZERO) GOTO 60
JROOT(I) = 1
ZROOT = .TRUE.
60 END DO
Is it equivalent to?:
Code:
DO I = 1, NGC
IF (ABS(G0(I))>ZERO) EXIT
JROOT(I) = 1
ZROOT = .TRUE.
END DO
--------------------------------------
Background: Chemical engineer, familiar mostly with MATLAB, but now branching out into real programming.