Introduction to Fortran


Instructor: Abishek Gopal

Time: Friday, April 8, 2022 — 10:00AM-12:30PM CT

Location: Blocker 220

Prerequisites: Current HPRC account

Fortran (Formula Translation) is a general-purpose, imperative programming language that is especially suited to numeric computation and scientific computing. Fortran was originally developed by IBM in the 1950s for scientific and engineering applications and it dominates this area of programming early on and has been in continuous use for over half a century in computationally intensive areas such as numerical weather prediction, finite element analysis, computational fluid dynamics, computational physics, crystallography and computational chemistry. It is a popular language for high-performance computing and is used for programs that benchmark and rank the world's fastest supercomputers.

This class will provide an introduction to the Fortran (mainly Fortran 90) programming language.

Course Materials

  • Introduction to Fortran (Spring 2022): PDF
  • Example program (Spring 2022): TAR


Many Fortran tutorials can be found on the Fortran Wiki.

Materials from Previous Classes

  • Introduction to Fortran (Fall 2021): PDF
  • Example program (Fall 2021): TAR
  • Introduction to Fortran (Spring 2021): PDF
  • Introduction to Fortran (Fall 2018): PDF
  • Introduction to Fortran Examples (Fall 2018): TGZ


This course focuses, among others, on the following topics:

  • Introduction to Fortran 90
  • Compile and run Fortran programs on Linux systems
  • Program structure
  • Variable Type
  • I/O
  • Logical expressions
  • Loops
  • Arrays
  • Subprograms and functions
  • Modules
  • Derived data types
  • Fortran 90 resources on the Web
  • Hands-on session

Note: During the class sessions many aspects of the material will be illustrated live via a login to Terra or Grace. Attendees are welcome to follow these parts with their own laptops. They will need to configure their laptops to use the TAMULink wireless network. Relevant details on this can be found at:

You are encouraged to contact the HPRC helpdesk with any questions regarding cluster accounts.