appendix A. Setting up the Fortran development environment

Before we dive into the code, let’s go over the basics of editing, compiling, and running a Fortran program. I’ll recommend a few text editors that I like and guide you through setting up the complete Fortran development environment.

If you’re familiar with Docker and want to skip all the tedious setup, jump ahead to section A.4, where I describe how to get the Modern Fortran Dockerfile that will get you up and running in no time.

A.1 Editing Fortran source files

You’ll write Fortran programs and modules as plain text files. You can edit them in your favorite text editor. Here are some popular choices:

Get Modern Fortran now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.