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
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Bibliography
ISO/IEC 1539:1991 (E), Fortran 90, 1991
ISO/IEC, Technical Corrigendum 1 to ISO/IEC 1539:1991, 1994.
ISO/IEC, Technical Corrigendum 2 to ISO/IEC 1539:1991, 1994.
Digital Equipment Corporation, DEC Fortran 90: Language Reference Manual, Digital Equipment Corporation.
Adams J.C., Brainerd W.S., Martin J.T., Smith B.T., Wagener J.L., Fortran 90 Handbook: Complete ANSI/ISO Reference, McGraw Hill.
Gehrke W., Fortran 90 Reference Handbook, Springer Verlag.
NAG, NAG Fortran 77 Library Mark 16, NAG Ltd.
NAG, NAG fl90, Release 1, NAG Ltd.
Author information
Authors and Affiliations
Rights 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