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

An Introduction to Pointers

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. 269-294

Introduction to Subroutines

Ian D. Chivers; Jane Sleightholme

We now have the following concepts for the use of subroutines:

Pp. 295-307

Subroutines: 2

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. 309-340

An Introduction to Modules

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. 341-363

Converting from Fortran 77

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. 365-409

Case Studies

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. 411-471

ISO TR 15580 IEEE Arithmetic

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. 473-492

ISO TR 15581 Allocatable Enhancements

Ian D. Chivers; Jane Sleightholme

These features provide us with a safer way of addressing certain types of problems that would previously have had to be tackled using pointers.

Pp. 493-499

Fortran 2003 and the Enhanced Module Facility

Ian D. Chivers; Jane Sleightholme

There are no compilers at this time that fully support the above. We hope this has whetted your appetite for what will be possible in the future with Fortran 2003 conformant compilers.

Pp. 501-506

Parallel Programming

Ian D. Chivers; Jane Sleightholme

The following are some practical rules and guidelines:

Pp. 507-510