Introduction to Fortran
2h 28mBeginner2022-05-25
Authors

Brad Richardson
Senior Research Software Engineer at Archaeologic, Inc.
Course details
Fortran is still widely used in high performance computing (HPC), and it is seeing a resurgence in open-source activity. Scientific and engineering applications continue to use it in existing applications. In this course, Brad Richardson covers some foundational concepts of programming in general and how those concepts are used in the Fortran language. Brad shows you how to set up Fortran in Windows, Mac, and Linux and walks you through the structure of a Fortran program. He goes over the process for fixing mistakes, as well as basics like variables, named constants, expressions, constructs, and arrays. Brad explains interactivity and how to organize and reuse certain sections of code. He concludes with a discussion on some of the more advanced features of Fortran and some common patterns that you can use to handle different classes of problems.
Skills covered
FORTRANLearningProgramming LanguagesOpen SourceSoftware Development
Concepts
Introduction
- Learning Fortran
- Initial setup - Windows
- Initial setup - Mac
- Initial setup - Linux
- Structure of a Fortran program
Fixing Mistakes
- Chapter intro - Fixing mistakes
- Compiler error messages - Typos in keywords
- Compiler error messages - Typos in user defined names
- Compiler error messages - Type mismatches
- Compiler error messages - Syntax errors
The Basics
- Chapter intro - The basics
- Variables
- Detailed variable behavior demonstration
- Named constants
- Expressions, order of operations, and type conversions
- Expression demonstration
- Conditional constructs
- Looping constructs
- Arrays
Interactivity
- Chapter intro - Interactivity
- User input
- Working with files
- Challenge - Create a To Do list application
- Solution - A completed To Do application
Organization and Reuse
- Chapter intro - Organization and reuse
- Function and subroutine syntax
- Argument association and execution semantics
- Modules
- Challenge - Reorganize your To Do application
- Solution - A more organized To Do application
Conclusion
- The future of Fortran
- Next steps for advancement