Re: Strange Fortran version
- From: "dpb" <dpbozarth@xxxxxxxx>
- Date: 26 Aug 2006 12:34:41 -0700
Richard Maine wrote:
I'm trying to compile an old (FORTRAN) program, but I can't really
identify the version of the language needed.
This isn't any standard or portable Fortran of any vintage. The things
you mention are non-standard features that have appeared on occasion in
some particular compilers. This kind of code was never very portable. I
couldn't name the exact compiler just based on this. Several old f66 or
early f77-era compilers used some forms like these....
IF (SET) ....
Use of a variable as boolean value? (also a la C?)
There are several variants of that one. I'd have to see what was in the
... and what the type of SET was. I'm assuming that SET here is REAL,
based on the clue of the assignment. In that case, if the ... is three
comma-separated statement labels, as in
IF (SET) 100, 200, 300
then that's a standard arithmetic IF, which (ought) to compile fine. ...
There were also some which had a "2-way" arithmetic if as well as the
Standard "3-way" above. It would look like
IF (SET) 100, 200
which was a shorthand for
IF (SET) 100, 200, 100
- Prev by Date: Re: Matlab/Simulink and fortran
- Next by Date: Re: Here you can read books free and buy all tickets
- Previous by thread: Re: Strange Fortran version
- Next by thread: Re: Strange Fortran version