Fortran

Guide To Learn

Modern Fortran

Compiling and running your first program

Let’s start by creating, compiling, and running your first Fortran program. I assume you’ve already installed the GNU Fortran compiler (gfortran) on your system. If you haven’t yet, follow the directions in appendix A to get yourself set up. When you have the compiler installed, test it by compiling and running your first Fortran program, as […]

Shallow water equations

Shallow water equations are a simple system of equations derived from Navier-Stokes equations. They are also known as the Saint-Venant equations, after the French engineer and mathematician A. J. C. Barre de Saint-Venant, who derived them in pursuit of his interest in hydraulic engineering and open-channel flows. SWEs are powerful because they can reproduce many […]

Why tsunami simulator?

A tsunami is a sequence of long water waves that are triggered by a displacement in a large body of water. This typically occurs because of earthquakes, underwater volcanoes, or landslides. Once generated, a tsunami propagates radially outward across the ocean surface. It grows in height and steepness as it enters shallow waters. A tsunami simulator is […]

Copying an array from one processor to another

In most scientific and engineering parallel applications, there’s data dependency between processes. Typically, a two-dimensional array is decomposed into tiles like a chessboard, and the workload of each tile is assigned to a processor. Each tile has its own data in memory that’s local to its processor. To illustrate the simplest case of parallel programming […]

What will you learn in this book?

This book will teach you how to write modern, efficient, and parallel Fortran programs. Working through each chapter, we’ll build from scratch a fully functional, parallel, fluid dynamics solver with a specific application to tsunami prediction. If you work through the book, you’ll come out with three distinct skill sets: While I’m not expecting you […]

Scroll to top