Fortran 90/95 for Scientists and Engineers

Stephen J. Chapman

Language: English

Published: Jan 1, 1995

Description:

Introduction to Computers and the Fortran language: The computer. Data representation in a computer. Computer languages. The History of the Fortran language; Basic Elements of Fortran: The Fortran character set. The structure of a Fortran program. Constant and variables. Assignment statements and arithmetic calculations. Intrinsic functions. List-Directed Input and Output Statements. Initialization of Variables. The IMPLICIT NONE Statement. Program Examples. Debugging Fortran Programs; Program Design and Branching Structures: Introduction to Top-down Design Techniques. Use of Pseudocode and Flowcharts. Logical Constants, Variables, and Operators. Control Constructs: Branches. More on Debugging Fortran Programs; Loops and Character Manipulation: Control Constructs: Loops. Character Assignments and Character Manipulations. Debugging Fortran Loops; Basic I/O Concepts: Formats and Formatted WRITE Statements. Output Devices. Formal Descriptors. Formatted READ Statements. An Introduction to Files and File Processing; Introductions to Arrays: Declaring Arrays. Using Array Elements in Fortran Statements. Using Whole Arrays and Array Subsets in Fortran Statements. Input and Output. Example Problems. When Should You Use an Array; Introduction to Procedures: Subroutines. Sharing Data Using Modules. Module Procedures. Fortran Functions. Passing Procedures as Arguments to Other Procedures; Additional Features of Arrays: Two-dimensional or Rank-2 Arrays. Multidimensional or Rank-n Arrays. Using Fortran Intrinsic Functions with Arrays. Masked Array Assignment: The WHERE Construct. The FORALL Construct. Allocatable Arrays; Additional Features of Procedures: Passing Multidimensional Arrays to Subroutines and Functions. The SAVE Attribute and Statement. Automatic Arrays. Pure and Elemental Procedures. Internal Procedures; More about Character Variables: Character Comparison Operations. Intrinsic Character Functions. Passing Character Variables to Subroutines and Functions. Variable-Length Character Functions. Internal Files; Additional Intrinsic Data Types: Alternate Kinds of the REAL Data Type. Alternate Lengths of the INTEGER Data Type. Alternate Kinds of the CHARACTER Data Type. The COMPLEX Data Type; Derived Data Types: Introduction to Derived Data Types. Working with Derived Data Types. Input and Output of Derived Data Types. Declaring Derived Data Types in Modules. Returning Derived Types from Functions; Advanced Features of Procedures and Modules: Scope and Scoping Units. Recursive Procedures. Keyword Arguments and Optional Arguments. Procedure Interfaces and Interface Blocks. Creating Interface Blocks. Generic Procedures. Extending Fortran with User-Defined Operators and Assignments. Restricting Access to the Contents of a Module. Advanced Options of the USE Statement; Advanced I/O Concepts: Additional Format Descriptors. Defaulting Values in List-Directed Input. Detailed Description of Fortran I/O Statements. Namelist I/O. Unformatted Files. Direct Access Files; Pointers and Dynamic Data Structures: Pointers and Targets. Using Pointers in Assignment Statements. Using Pointers with Arrays. Dynamic Memory Allocation with Pointers. Using Pointers as Components of Derived Data Types. Arrays of Pointers. Using Pointers in Procedures. Binary Tree Structures; Redundant, Obsolescent, and Deleted FORTRAN Features: Pre-Fortran 90 Character Restrictions. Obsolescent Source Form. Redundant Data Type. Older, Obsolescent, and Undesirable Specification Statements. Sharing Memory Locations: Undesirable Subprogram Features. Miscellaneous Execution Control Features. Obsolete Branching and Looping Structures. Redundant Features of l/O Statements. ASCII and EBCDIC Coding Systems. Fortran 90/95 Intrinsic Procedures. Order of Statements in a Fortran 90/95 Program.