Fortran User's Guide

Module Files

Compiling a file containing a Fortran 90 MODULE generates a module file (.mod file) for every MODULE encountered in the source. The file name is derived from the name of the MODULE; file xyz.mod (all lowercase) will be created for MODULE xyz.

By default, such files are usually sought in the current working directory. The -Mdir option allows you to tell f90 to seek them in an additional location.

The .mod files cannot be stored into an archive file, or concatenated into a single file.