NUMERICAL MATHEMATICS AND SCIENTIFIC COMPUTATION
Series Editors
P.E. FARRELL
S. FOUCART
A.M. STUART
E. SÜLI
O. MULA
B. PEHERSTORFER
NUMERICAL MATHEMATICS AND SCIENTIFIC COMPUTATION
Books in the series
Monographs marked with an asterisk (*) appeared in the series ‘Monographs in Numerical Analysis’ which
is continued by the current series.
For a full list of titles please visit
https://global.oup.com/academic/content/series/n/numerical-mathematics-and-scientic-computation-
nmsc/?lang=en&cc=cn
* J. H. Wilkinson: The Algebraic Eigenvalue Problem
* I. Duff, A. Erisman, and J. Reid: Direct Methods for Sparse Matrices
* M. J. Baines: Moving Finite Elements
*
J. D. Pryce:
Numerical Solution of Sturm–Liouville Problems
C. Schwab: p- and hp- Finite Element Methods: Theory and Applications in Solid and Fluid Mechanics
J. W. Jerome: Modelling and Computation for Applications in Mathematics, Science, and Engineering
A. Quarteroni and A. Valli: Domain Decomposition Methods for Partial Differential Equations
G. Em Karniadakis and S. J. Sherwin: Spectral/hp Element Methods for Computational Fluid Dynamics
I. Babuška and T. Strouboulis: The Finite Element Method and its Reliability
B. Mohammadi and O. Pironneau: Applied Shape Optimization for Fluids
S. Succi: The Lattice Boltzmann Equation for Fluid Dynamics and Beyond
P. Monk: Finite Element Methods for Maxwell’s Equations
A. Bellen and M. Zennaro: Numerical Methods for Delay Differential Equations
J. Modersitzki: Numerical Methods for Image Registration
M. Feistauer, J. Felcman, and I. Straškraba: Mathematical and Computational Methods for Compressible
Flow
W. Gautschi: Orthogonal Polynomials: Computation and Approximation
M. K. Ng: Iterative Methods for Toeplitz Systems
M. Metcalf, J. Reid, and M. Cohen: Fortran 95/2003 Explained
G. Em Karniadakis and S. Sherwin: Spectral/hp Element Methods for Computational Fluid Dynamics,
Second Edition
D. A. Bini, G. Latouche, and B. Meini: Numerical Methods for Structured Markov Chains
H. Elman, D. Silvester, and A. Wathen: Finite Elements and Fast Iterative Solvers: With Applications
in Incompressible Fluid Dynamics
M. Chu and G. Golub: Inverse Eigenvalue Problems: Theory, Algorithms, and Applications
J.-F. Gerbeau, C. Le Bris, and T. Lelièvre: Mathematical Methods for the Magnetohydrodynamics of Liquid
Metals
G. Allaire and A. Craig: Numerical Analysis and Optimization: An Introduction to Mathematical Modelling
and Numerical Simulation
K. Urban: Wavelet Methods for Elliptic Partial Differential Equations
B. Mohammadi and O. Pironneau: Applied Shape Optimization for Fluids, Second Edition
K. Boehmer: Numerical Methods for Nonlinear Elliptic Differential Equations: A Synopsis
M. Metcalf, J. Reid, and M. Cohen: Modern Fortran Explained
J. Liesen and Z. Strakoš: Krylov Subspace Methods: Principles and Analysis
R. Verfürth: A Posteriori Error Estimation Techniques for Finite Element Methods
H. Elman, D. Silvester, and A. Wathen: Finite Elements and Fast Iterative Solvers: With Applications in
Incompressible Fluid Dynamics, Second Edition
I. Duff, A. Erisman, and J. Reid: Direct Methods for Sparse Matrices, Second Edition
M. Metcalf, J. Reid, and M. Cohen: Modern Fortran Explained, Second Edition
Modern Fortran Explained
Incorporating Fortran 2023
Michael Metcalf
Formerly of CERN, Geneva, Switzerland
John Reid
JKR Associates, Oxford, UK
Malcolm Cohen
Principal technical consultant, The Numerical Algorithms Group Ltd,
Oxford, UK
and
Reinhold Bader
Scientic staff member at Leibniz Supercomputing Centre (LRZ) of
the Bavarian Academy of Sciences, Germany
Great Clarendon Street, Oxford, OX2 6DP,
United Kingdom
Oxford University Press is a department of the University of Oxford.
It furthers the University’s objective of excellence in research, scholarship,
and education by publishing worldwide. Oxford is a registered trade mark of
Oxford University Press in the UK and in certain other countries
© Michael Metcalf, John Reid, Malcolm Cohen, Reinhold Bader 2024
The moral rights of the authors have been asserted
First edition published 1987 as Fortran 8x Explained
Second edition published 1989
Third edition published in 1990 as Fortran 90 Explained
Fourth edition published 1996 as Fortran 90/95 Explained
Fifth edition published 1999
Sixth edition published 2004 as Fortran 95/2003 Explained
Seventh edition published 2011 as Modern Fortran Explained
Eighth edition published as Modern Fortran Explained: Incorporating Fortran 2018
This edition published 2023
All rights reserved. No part of this publication may be reproduced, stored in
a retrieval system, or transmitted, in any form or by any means, without the
prior permission in writing of Oxford University Press, or as expressly permitted
by law, by licence or under terms agreed with the appropriate reprographics
rights organization. Enquiries concerning reproduction outside the scope of the
above should be sent to the Rights Department, Oxford University Press, at the
address above
You must not circulate this work in any other form
and you must impose this same condition on any acquirer
Published in the United States of America by Oxford University Press
198 Madison Avenue, New York, NY 10016, United States of America
British Library Cataloguing in Publication Data
Data available
Library of Congress Control Number: 2023946356
ISBN 9780198876571
ISBN 9780198876588 (pbk.)
DOI: 10.1093/oso/9780198876571.001.0001
Printed and bound by
CPI Group (UK) Ltd, Croydon, CR0 4YY
Links to third party websites are provided by Oxford in good faith and
for information only. Oxford disclaims any responsibility for the materials
contained in any third party website referenced in this work.