Skip to main content
  • 3506 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 49.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Walter S. Brainerd .

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics