I am currently working on a translation of an old program from fortran 77 to matlab, since matlab is more prominent in this business nowadays. Prior to this assignment, I didn't know anything about fortran, but after some days of reading and testing I felt ready. (I already know matlab and C++)
Now, I have realized that the author of the source code I'm working on used some tricks not described in the manuals, and so i'm looking for interpretation help here.
Firstly, I found a mysterious if-construct. It assigns a new, implicitly declared variable, which is then only used once. (the two lines of the construct are not adjacent in my code).
if (statement) EAS = something
something_else = EAS/some_expression
now, if the if construct does not activate, what happens? My compiler can't get it to work, but the program (compiled in the eighties) goes smoothly.
Secondly, there's a nested do-loop, where the outermost doesn't seem to be terminated anywhere; It's got a label, and the label is found further down, but it's not paired up with a continue or end do. Does it still terminate the loop at this point?
Help would be much appreciated
Double, double, toil and trouble
fire burn and cauldron bubble
Now, I have realized that the author of the source code I'm working on used some tricks not described in the manuals, and so i'm looking for interpretation help here.
Firstly, I found a mysterious if-construct. It assigns a new, implicitly declared variable, which is then only used once. (the two lines of the construct are not adjacent in my code).
if (statement) EAS = something
something_else = EAS/some_expression
now, if the if construct does not activate, what happens? My compiler can't get it to work, but the program (compiled in the eighties) goes smoothly.
Secondly, there's a nested do-loop, where the outermost doesn't seem to be terminated anywhere; It's got a label, and the label is found further down, but it's not paired up with a continue or end do. Does it still terminate the loop at this point?
Help would be much appreciated
Double, double, toil and trouble
fire burn and cauldron bubble