Large programs are extremely difficult to debug and maintain unless they are split into independent parts. Even relatively short programs are greatly improved when their component parts are refined as procedures. Modules provide a place to put data declarations so that they can be used and shared by programs. Modules also provide the place to put a Fortran procedure, which is either a function or a subroutine, and to put definitions of user-defined types; these are basic building blocks of a program and are usually used by more than one part of a program.
Modules are especially useful when building a “package” or “library” of data and procedures that may be accessible to many different programs.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2009 Walter S. Brainerd
About this chapter
Cite this chapter
Brainerd, W.S. (2009). Modules and Procedures. In: Guide to Fortran 2003 Programming. Springer, London. https://doi.org/10.1007/978-1-84882-543-7_3
Download citation
DOI: https://doi.org/10.1007/978-1-84882-543-7_3
Publisher Name: Springer, London
Print ISBN: 978-1-84882-542-0
Online ISBN: 978-1-84882-543-7
eBook Packages: Computer ScienceComputer Science (R0)