[comp.sys.atari.st] Fortran subroutines on ST

menton%v5130b.DECnet@NRL-ACOUSTICS.ARPA ("V5130B::MENTON") (12/08/87)

      To those "real" programmers who use Fortran (in particular, Absoft's
AC/Fortran on the ST), please be advised that several of the subroutines and
functions in the fine book, "Numerical Recipes", will not run properly on the
ST unless the Fortran statement "SAVE" is added to the routine.  The "SAVE" 
statement should go just before any "DATA x.../a..." statements near the 
beginning of the routine.

      Apparently, the VAX Fortran compiler does the equivalent of having "SAVE" 
in the routine as a default.  Without "SAVE", the subroutine bombs on the ST 
but runs fine on the VAX.  With "SAVE", VAX and ST both work fine and give the 
same answers.

      Of course, if I had read "Numerical Recipes", p.14, where info 
on "SAVE" is discussed, I wouldn't have spent 3 days using the interactive 
debugger to figure out why the routine wasn't working!  Naaaahhhh - reading the 
directions first is still an unacceptable alternative!

      					Bob Menton KG3J
      				        MENTON@NRL-ACOUSTICS.ARPA

------