E-Book Overview
Writing technical applications in a modern object-oriented approach, using Fortran 90 or 95, can be problematic. This book teaches how to employ the principles of object-oriented programming to produce clear, highly efficient executable codes (rather than focusing on the traditional procedural abilities of Fortran). This text is an excellent harbinger to all the features of the finalized, fully object-oriented Fortran 200X. In addition to covering the OOP methodologies, the basic foundation of the language and solid programming skills are reviewed, making the book valuable also as a good migration tool for experienced Fortran programmers that want to smoothly pick up the OOP paradigm. The author highlights common themes by using comparisons with Matlab® and C++ and uses numerous cross-referenced examples to convey all concepts quickly and clearly. Complete code for the examples is included on the accompanying CD.
E-Book Content
Object Oriented Programming via Fortran 90/95 Ed Akin Rice University Mechanical Engineering and Materials Science Department Houston, Texas May 29, 2001 Draft # 4.2, Copyright c 2001, All rights reserved. ii Contents Preface vii 1 Program Design 1.1. Introduction . . . . . . . . . . . . . . . 1.2. Problem Definition . . . . . . . . . . . 1.3. Modular Program Design . . . . . . . . 1.4. Program Composition . . . . . . . . . . 1.4.1. Comments . . . . . . . . . . . 1.4.2. Statements . . . . . . . . . . . 1.4.3. Flow Control . . . . . . . . . . 1.4.4. Functions . . . . . . . . . . . . 1.4.5. Modules . . . . . . . . . . . . 1.4.6. Dynamic Memory Management 1.5. Program evaluation and testing . . . . . 1.6. Program documentation . . . . . . . . . 1.7. Object Oriented Formulations . . . . . 1.8. Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .