Introduction to Modern Fortran
IMPORTANT: This course is partially copyright Dr J.S. Morgan, Computing Services Department, the University of Liverpool, and its presence here does NOT constitute permission to copy it for any reason or use other than attending the course or using it for personal study. The other part of the copyright is the author's. You may, of course, refer to these pages to see what they contain. If you want to take a copy for any other reason, please contact the author for permission.
This is a basic introduction to modern Fortran. At the end of the course, students should be able to write significant programs in Fortran, and to be able to start working on existing programs written in modern Fortran (i.e. in the Fortran 90/95 style). It will not cover obsolete features of Fortran, some of the more advanced aspects, or most of the extensions introduced by Fortran 2003.
Normally, lectures 1 to 5 are given on the first day, 6 to 8 on the second, and 9 onwards (including some of the extra material) on the third. But the schedule and coverage may be varied to meet the needs of the audience.
3: Data Types and Basic Calculation
7: KIND, Precision and COMPLEX
Practical exercises to use the facilities taught
Programs and data used in the practicals
Specimen answers to the exercises
Extra material:
You are advised not to look at these until you are comfortable using the material in the previous lectures. See also the Old Fortran course below, which contains some explanation of older features the course ignores.
14: Advanced Use Of Procedures
Programming in Fortran 90/95 by Steve Morgan and Lawrie Schonfelder (Fortran Market, PDF, $15)
Fortran 95/2003 Explained by Michael Metcalf, John Reid and Malcolm Cohen
Also Fortran 90 versions of above two
Fortran 90 Programming by Miles Ellis, Ivor Phillips and Thomas Lahey