
Who is this course for? What do you need? and What can you expect?
After this lesson you'll be able to install all the necessary tools and compile and execute your first program on Windows.
After this lesson you'll be able to install all the necessary tools and compile and execute your first program on Mac OSX.
After this lesson you'll be able to install all the necessary tools and compile and execute your first program on Ubuntu.
This lesson will help familiarize you with some of the more common compiler errors.
A basic outline of the sections of a Fortran program.
Variables are the backbone of how programs work.
What is an expression, how are they used, and how are they evaluated.
Master looping constructs in Fortran, including the do loop with start, end, and an optional increment. Learn do while patterns, infinite loop risks, and using exit to break loops.
Manage scalars and arrays in Fortran by declaring one-dimensional and occasional multi-dimensional arrays, access elements by index in parentheses, and use slices to print the first 10 squares in reverse.
Learn how to get user input in Fortran using the read statement, declare variables for name, age, and hometown, and handle input errors with status checks and loops.
Open a file named hello.txt, write program outputs with write statements using the unit, optionally replace existing content, and close the file when finished.
Learn to build a command line todo app in Fortran, handling file I/O for tasks and implementing add, delete, and quit operations with input validation.
Compare functions and subroutines in Fortran, noting that functions have explicit return values while subroutines do not. Examine dummy versus actual arguments, intent attributes, and lexical scope.
Explore derived types in Fortran, including type-bound procedures, abstract and private components, and building shapes with circles and rectangles to compute areas.
Learn to automate Fortran compilation with make by defining targets, dependencies, and rules in a makefile, including cleaning with a phony target and running the first target by default.
Explore Fortran compiler options to improve safety and diagnostics with -w all, -w extra, -w error, -pedantic. Manage paths and outputs with -I, -J, -c, -o, and -O0 to -O3.
Follow practical Fortran style and conventions for naming modules (_m), procedures, types (_t), and variables. Organize code with consistent formatting, two-level indentation for continued lines, and clear section delineation.
Learn one of the oldest programming languages. Fortran is still in common use for high-performance scientific and engineering applications. If you're new to programming, and especially if you're in a math, science or engineering field, this is a great course to get started with.
We talk about getting your computer initially set up, programming fundamentals, including variables, looping and branching constructs, modules and derived types. We even go into some tips for growing and organizing your programs towards the end of the course.