Below you will find pages that utilize the taxonomy term “VS Code”
Articles
read more
Running a simple Fortran program
In the previous post I included the obligatory “hello world” snippet. It would be nice if you could actually run code like that on your computer! It’s not so hard; we have very modern tooling available, and everything works equally well on Windows and Linux. The tools are freely available too.
First, install the following programs:
- Intel oneAPI Fortan Esstentials. This includes the IFX compiler.
- Fortran Package Manager (FPM). This tool is a “zero-configuration” build system which can also install and build dependencies for you.
- Visual Studio Code. We’ll use this as our editor. As far as I know there is no fully-integrated coding solution for Fortran programs. Some may use Visual Studio, some Visual Studio Code, and Jetbrains Clion may be a good option too. But none of these have solutions for all your IDE needs. After some experimenting, I think VS Code is the best option.
In a terminal, navigate to a place where you would like to create your Fortran project, and run: