These are chat archives for Fortran-FOSS-Programmers/General-Discussion

11th
Mar 2018
chriselrod
@chriselrod
Mar 11 2018 06:51

For such an old language, Fortran really seems to suffer from lack of good resources and mature libraries to help in writing Fortran. Like, I had to wrap a few functions from the R-math libraries (written in C) to get performant probability quantile functions.

I found Fortran For Scientists and Engineers helpful. It's very basic (and has weird things like nested loops in a suboptimal order, but I guess even the lowest optimization levels in a compiler take care of that?), but that makes it a fast read and great for the target audience of scientists/engineers.

You can also google examples of modules. You can save all your code in files, each with a module, and then simple "use [module name]" for the other modules any depend upon. Keeps things organized and will automatically handle interfaces.