Modern Fortran Programming on Gadi
0.1.0
  • Tutorial
    • Fortran Programming Basics
Modern Fortran Programming on Gadi
  • Tutorial
  • View page source

Tutorial

  • Fortran Programming Basics
    • What we cover
      • Prerequisites and setup
    • Compile and run
      • Hello, Fortran
      • Language basics
    • Source form
    • Types and declarations
    • Operators (overview)
    • Input and output
      • Control flow
    • If and case
    • Loops
      • 1D arrays and array features
    • Declaring arrays
    • Array constructors and assignments
      • Multidimensional Arrays (Matrices)
    • Declaration and Rank
    • Column-Major Order (Crucial!)
    • Initialisation
    • Accessing Elements and Slicing
    • Matrix Arithmetic vs. Element-wise
    • Dynamic Allocation
    • Summary Table
    • Intrinsic procedures (basics)
    • Intrinsic procedures (linear algebra)
    • Intrinsic procedures (reductions)
    • Intrinsic procedures (location querying)
    • The element-wise masks and where construct
      • The do concurrent construct
    • Syntax
    • The Independence Contract
      • Modules
    • Basic Anatomy
    • How to Import Modules
    • Controlling Namespace (only)
      • Procedures
    • Subroutines vs functions
    • Subroutines
    • Functions
    • Arguments and Intent (The Contract)
    • Pass-By-Reference
    • Modules and Interfaces
      • Numerical robustness tips
      • Project layout and simple builds
      • Fortran Compilation
    • The File Extensions
    • The “Header” Difference (.mod files)
    • Dependency Management (Makefiles)
      • Hands-on exercises
      • Common pitfalls in modern Fortran
Previous Next

© Copyright 2024, National Computational Infrastructure.

Built with Sphinx using a theme provided by Read the Docs.