Re:Show HN: A Fortran web framework
by greglindahl on Monday June 20, 2016 @04:01PM
(#11940988)
... just because it does that in gfortran doesn't mean it's standard-conforming code.
What is the "standard" fortran compiler for scientific computing? Do a lot of people use gfortran? Or something commercial?
Re:Show HN: A Fortran web framework
by greglindahl on Tuesday June 21, 2016 @01:25AM
(#11943672)
There is no "standard" compiler. There is a Fortran standard, and there are standard-conforming compilers and standard-conforming programs.
There are popular compilers, like gfortran and the Intel compiler.
My point had nothing to do with popularity. My point is that non-standard-conforming programs can have anything happen when they execute, including starting World War III (see https://www.google.com/search?q=fortran+"start+world+war"), and showing output from one compiler doesn't prove anything.
> What is the "standard" fortran compiler for scientific computing?
Not so long ago, supercomputers typically had Portland Group, Cray and Pathscale compilers installed. Nowadays it's pretty much Intel and gfortran.
It is impossible inside the loop, even in F77.
But if a global variable is used as a loop counter, and the variable is altered in a subroutine, then the code altering the variable is not inside the loop. At least not in the eyes of the Fortran compiler.