Fortran 90 Notebook III
R. Checa-Garcia (CC BY-NC-SA) COMPUTING-BLOG
Scientific-computing Fortran
Notebook
Table of Contents
General information
Fortran is one of the oldest computer programming languages that is still alive. It is not a main language, but it has its niche in scientific applications. There are several blog entries that a I think useful to understand recent updates in the language itself. First in github f3-fortran there is a list of proposals that are related, as far as I understood, with LFortran new compiler.
Other important source of updates of fortran comunity is centralized in the fortran-lang github group. There you have a webpage fortran-lag.org where you can find news and information of the related projects. From them I highlight two: the fortran-package-manager fpm and the standard-lib. The last one relies on few python libraries to create an interesting tool.
For further information you can read two summaries at resurrecting-fortran and 1st-year of fortran-lang.
Tools
Name | Goal | Licence | Docs | Link |
---|---|---|---|---|
findent | Beautify f90, f2003 code | Open-Source | info | sourceforge |
tags (ctags) | Syntax higlight | Open-Source | info | sourceforge |
f2c | Fortran77 to C translator | Open-Source | info | code |
fortran-language-server | support for editors | MIT | info | github |
fntcheck | code checker F77 | |||
gdb | gnu debugger | GPL | ||
fpm | package manager | MIT | info | github |
IDE
Here there is a list of text editors that I have tested myself. My main editor has been vim or neovim, now I am learning emacs (doom-emacs in particular). From time to time I use Geany which works well for many projects. For very large projects it might be worth to check Eclipse and Code-Blocks, as they have specific features of fortran. My recommendation if you are beginner is to try emacs or neovim.
Name | Kind | Licence | Docs | Link |
---|---|---|---|---|
Geany | General IDE | Open-Source | ||
Code-Blocks | Support Fortran and C | Open-Source | ||
Eclipse+Photran | Fortran in Eclipse | Open-Source | ||
Kate / Gedit | general IDE | Open-Source | ||
Atom | general IDE (plugins) | Open-Source | ||
Emacs | Two fortran modes (f77 & f90) | Open-Source | ||
Visual Studio | general IDE (plugins) | Open-Source | ||
Vim/Neovim | with vim-fortran plugin | Open-Source | ||
kakoune | Open-Source |
Compilers
There are several compilers, here I list only those that are open-source. I use mostly gfortran although it is generaly consider that the intel fortran is a bit faster.
Name | Kind | Licence | Docs | Link |
---|---|---|---|---|
gfortran | GCC | Open-Source | info | web |
LFortran | LLVM | Open-Source | web | |
Flang | LLVM | Open-Source | web |