Fortranplus
Fortranplus

Conversion from Fortran 77 to Modern Fortran

Course Overview

The course provides an introduction to key features of modern Fortran for Fortran 77 programmers.

The course is a mixture of lectures and practicals with plenty of online examples to work with.

Pre-requisites

Delegates should be familiar with Fortran 77 and wanting to use the new features of Modern Fortran.

Course details

Rules for computer arithmetic


Defining precision

Arrays

dynamic arrays - allocatable attribute
whole array processing
array sections
array element ordering

I/O

brief coverage of I/O

handling I/O errors with new features

Functions

functions and modules
new intrinsic functions
user defined functions
scope of variable
internal functions
recursive functions
pure and elemental functions

Control structures

coverage of all modern Fortran's control structures

Introduction to derived types

Introduction to pointers

Subroutines

subroutines and modules
passing parameters in Fortran

passing scalar and array parameters
automatic and allocatable arrays
keyword and optional arguments
internal subroutines and scope
commercial numerical and statistical subroutine libraries

Modules

Fortran's code organisation mechanism
basic module syntax
modules for global data
modules for precision specification and constant definition
modules for derived types
implicit and explicit interfaces
 

Introduction to data structuring

Operator overloading

Introduction to generic programming

Mathematical examples demonstrating features of Modern Fortran

using linked lists for sparse matrix problems

  • inner product of two sparse vectors

 
solving 1st order Ordinary Differential Equations using Runge Kutta Merson

  •  automatic arrays
  •  subroutine as a dummy procedure argument
     

a subroutine to extract the diagonal elements of a matrix
 
the solution of a system of linear simultaneous equations using Gaussian Elimination

 

Converting from Fortran 77

deleted features
obsolescent features
better alternatives
commerical conversion tools

 

Course material

program examples from 4th edition book (updated 2/9/18)
fourth_edition.zip
Compressed archive in ZIP format [170.5 KB]

For more information please contact queries@fortranplus.co.uk

Contact us today!

queries@fortranplus.co.uk

Print | Sitemap
© Fortranplus 2009