Legacy Fortran
Most Fortran in the world is older than the standard this course teaches. These lessons read it: the fixed form with its columns, the COMMON block, EQUIVALENCE and BLOCK DATA, and the control flow of computed GOTO, arithmetic IF and labelled DO. The last lesson ports one such program to modules and IMPLICIT NONE while its output stays the same.
122
Reading and writing fixed form
columns 1 to 72, the C comment, the continuation, -ffixed-form and a real build of an old program
Open
123
COMMON, EQUIVALENCE and BLOCK DATA
a COMMON block shared by two units, EQUIVALENCE of two names, BLOCK DATA and an initialised block
Open
124
GOTO, arithmetic IF and labelled DO
computed GOTO, the three-way arithmetic IF, DO with a label and a CONTINUE, and what replaces them
Open
125
Porting a legacy program
an old program read, IMPLICIT NONE added, COMMON replaced by a module, and the output that stays the same
Open