Skip to main content

Subroutines: 2

  • Chapter
Book cover Introducing Fortran 90

Abstract

The aims of this chapter are to extend the ideas in the earlier chapter on subroutines by using concrete examples that:

  • look at passing rank one arrays as parameters, rather than simple scalars;

    • to introduce explicit shape dummy arrays;

  • look at passing character variables as parameters;

    • to introduce assumed length dummy arguments;

  • uses the Quick Sort algorithm which in turn;

    • introduces recursive subroutines;

    • introduces the use of an internal subroutine;

    • looks at the way in which we can maintain a consistent interface between a program and a subroutine and actually re-implement the algorithm that solves the particular sub-problem;

    • looks at the use of the timing routines available in Fortran to determine where the program actually spends its time;

  • look at passing rank two arrays as parameters;

    • to introduce assumed shape dummy arrays;

It is one thing to show a man he is in error, and another to put him possession of the truth.

John Locke

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 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.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.

Bibliography

  • ISO/IEC 1539:1991 (E), Fortran 90, 1991

    Google Scholar 

  • ISO/IEC, Technical Corrigendum 1 to ISO/IEC 1539:1991, 1994.

    Google Scholar 

  • ISO/IEC, Technical Corrigendum 2 to ISO/IEC 1539:1991, 1994.

    Google Scholar 

  • Digital Equipment Corporation, DEC Fortran 90: Language Reference Manual, Digital Equipment Corporation.

    Google Scholar 

  • Adams J.C., Brainerd W.S., Martin J.T., Smith B.T., Wagener J.L., Fortran 90 Handbook: Complete ANSI/ISO Reference, McGraw Hill.

    Google Scholar 

  • Gehrke W., Fortran 90 Reference Handbook, Springer Verlag.

    Google Scholar 

  • NAG, NAG Fortran 77 Library Mark 16, NAG Ltd.

    Google Scholar 

  • NAG, NAG fl90, Release 1, NAG Ltd.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 1995 Springer-Verlag London Limited

About this chapter

Cite this chapter

Chivers, I.D., Sleightholme, J. (1995). Subroutines: 2. In: Introducing Fortran 90. Springer, London. https://doi.org/10.1007/978-1-4471-3031-4_23

Download citation

  • DOI: https://doi.org/10.1007/978-1-4471-3031-4_23

  • Publisher Name: Springer, London

  • Print ISBN: 978-3-540-19940-3

  • Online ISBN: 978-1-4471-3031-4

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics