Catálogo de publicaciones - libros

Compartir en
redes sociales


Introduction to Programming with Fortran

Ian D. Chivers Jane Sleightholme

Resumen/Descripción – provisto por la editorial

No disponible.

Palabras clave – provistas por la editorial

No disponibles.

Disponibilidad
Institución detectada Año de publicación Navegá Descargá Solicitá
No detectada 2006 SpringerLink

Información

Tipo de recurso:

libros

ISBN impreso

978-1-84628-053-5

ISBN electrónico

978-1-84628-054-2

Editor responsable

Springer Nature

País de edición

Reino Unido

Fecha de publicación

Información sobre derechos de publicación

© Springer-Verlag London Limited 2006

Tabla de contenidos

Overview

Ian D. Chivers; Jane Sleightholme

We now have a lot of the tools to start tackling problems in a structured and modular way, breaking problems down into manageable chunks and designing subprograms for each of the tasks.

Pp. 1-7

Introduction to Computer Systems

Ian D. Chivers; Jane Sleightholme

We can now perform operations on whole arrays and partial arrays (array sections) without having to refer to individual elements. This shortens program development time and greatly clarifies the meaning of programs.

Array constructors can be used to assign values to rank 1 arrays within a program unit. The RESHAPE function allows us to assign values to a two or higher rank array when used in conjunction with an array constructor.

We have introduced the concept of a deferred-shape array. Arrays do not need to have their shape specified at compile time, only their rank. Their actual shape is deferred until runtime. We achieve this by the combined use of the ALLOCATABLE attribute on the variable declaration and the ALLOCATE statement, which makes Fortran a very flexible language for array manipulation.

Pp. 9-14

Introduction to Operating Systems

Ian D. Chivers; Jane Sleightholme

We have now introduced the concept of a module, another type of program unit, probably one of of the most important features of Fortran 90. We have seen in this chapter how they can be used:

This is a very powerful addition to the language, especially when constructing large programs and procedure libraries.

Pp. 15-18

Introduction to Using a Computer System

Ian D. Chivers; Jane Sleightholme

Characters represent a different data type to any other in Fortran, and as a consequence there is a restricted range of operations which may be carried out on them.

A character variable has a length which must be assigned in a CHARACTER declaration statement.

Character strings are delimited by apostrophes (’) or quotation marks (“). Within a character string, the blank is a significant character.

Character strings may be joined together (concatenated) with the // operator.

Substrings occurring within character strings may be also be manipulated. There are a number of functions especially for use with characters:

Pp. 19-23

Introduction to Problem Solving

Ian D. Chivers; Jane Sleightholme

This chapter has shown some of the options open to you when working with legacy code. The emphasis has been on relatively straightforward code restructuring. The use of software tools to aid in this is highly recommended as converting manually using an editor is obviously going to involve much more work.

In Chapter 26 we will look at an example that involves a major rewrite using user defined data types.

Pp. 25-34

Introduction to Programming Languages

Ian D. Chivers; Jane Sleightholme

It is hoped that you now have some idea about the wide variety of uses that programming languages are put to.

Pp. 35-61

Introduction to Programming

Ian D. Chivers; Jane Sleightholme

We can now perform operations on whole arrays and partial arrays (array sections) without having to refer to individual elements. This shortens program development time and greatly clarifies the meaning of programs.

Array constructors can be used to assign values to rank 1 arrays within a program unit. The RESHAPE function allows us to assign values to a two or higher rank array when used in conjunction with an array constructor.

We have introduced the concept of a deferred-shape array. Arrays do not need to have their shape specified at compile time, only their rank. Their actual shape is deferred until runtime. We achieve this by the combined use of the ALLOCATABLE attribute on the variable declaration and the ALLOCATE statement, which makes Fortran a very flexible language for array manipulation.

Pp. 63-75

Arithmetic

Ian D. Chivers; Jane Sleightholme

The following are some practical rules and guidelines:

Pp. 77-106

Arrays 1 Some Fundamentals

Ian D. Chivers; Jane Sleightholme

Support for the above is relatively limited at the time of writing this book. There is always a time lag between the formal publication of a standard and the implementation in production compilers. As compiler support improves examples will be added to our web site. Our home page is:

Pp. 107-118

Arrays 2 Further Examples

Ian D. Chivers; Jane Sleightholme

Another type of data — logical — is also recognised. A LOGICAL variable may take one of two values — or .

Pp. 119-132