F90 Model : Modules Over COMMON BLOCKs
Modules can provide an extremely robust alternative to the
Fortran 77 COMMON BLOCK.
- All details of the data structure & order is isolated to a
single source file.
No need to replicate COMMON BLOCKs throughout each subroutine
or use the non-Fortran 77 INCLUDE as a work-around.
- Avoid problems with unequal COMMON BLOCK definitions.
- Can use all data variables by default, or select and rename a subset.
Code examples
Slide 9