NERSCPowering Scientific Discovery for 50 Years

FUN Training July 2023: Modern Fortran Basics

July 10, 2023

Introduction

NERSC is offering virtual hands-on training on modern Fortran basics on July 10-11, 2023. This event is organized by the Fortran Users of NERSC (FUN) Special Interest Group. 

Fortran is adopted in many large scientific applications running on high-performance computers. This tutorial will provide you with the basics of Fortran programming, while highlighting its modern features and practices, including modern control constructs, modules/submodules, derived types, coarrays, Fortran package manager, and more. This training will also discuss common compiler error messages and how To fix them; how to convert legacy Fortran code to modern Fortran code. You'll learn how to write efficient modern Fortran code through this hands-on training with examples on Perlmutter. 

ALCF and OLCF users are welcome to this training. NERSC training accounts will be provided if needed.

Date and Time: 9:00 am - 1:30 pm (Pacific time), July 10-11 (Mon-Tue), 2023

The format of this event will be online only.

Recordings can be found on YouTube.

Registration

Closed.

Agenda

Day 1, July 10, Part 1:

  • Welcome and Introduction
  • Advantages and Applications of Modern Fortran
  • Common Compiler Error Messages and How To Fix Them
  • Modern Declarations

Day 1, July 10, Part 2:

  • Untangling Spaghetti: Modern Control Constructs
  • Code Organisation: Modules and Submodules

Day 2, July 11, Part 1:

  • Structuring Your Data: Derived Types
  • Going Parallel: Intro to Coarrays

Day 2, July 11, Part 2:

  • The Fortran Package Manager (fpm)
  • Unit Testing: Examples with Veggies

 

Presentation Materials

Q&A Document

Examples and Exercises

Day 1, Part 1 Slides

Day 1, Part 2 Slides

Day 2, Part 1 Slides

Day 2, Part 2 Slides