Skip to main content Accessibility help
×
Hostname: page-component-8448b6f56d-dnltx Total loading time: 0 Render date: 2024-04-24T02:03:33.471Z Has data issue: false hasContentIssue false

2 - The Object-Oriented Way

from PART I - THE TAO OF SCIENTIFIC OOP

Published online by Cambridge University Press:  01 June 2011

Damian Rouson
Affiliation:
Sandia National Laboratories
Jim Xia
Affiliation:
IBM Canada Lab in Markham
Xiaofeng Xu
Affiliation:
General Motors Corp.
Get access

Summary

“Believe those who are seeking the truth. Doubt those who find it.”

Andre Gide

Nomenclature

Chapter 1 introduced the main pillars of object-orientation: encapsulation, information hiding, polymorphism, and inheritance. The current chapter provides more detailed definitions and demonstrations of these concepts in Fortran 2003 along with a complexity analysis. As noted in the preface, we primarily target three audiences: Fortran 95 programmers unfamiliar with OOP, Fortran 95 programmers who emulate OOP, and C++ programmers familiar with OOP. In reading this chapter, the first audience will learn the basic OOP concepts in a familiar syntax. The second audience will find that many of the emulation techniques that have been suggested in the literature can be converted quite easily to employ the intrinsic OOP constructs of Fortran 2003. The third audience will benefit from the exposure to OOP in a language other than their native tongue. All will hopefully benefit from the complexity analysis at the end of the chapter.

We hope that using the newest features of Fortran gives this book lasting value. Operating at the bleeding edge, however, presents some short-term limitations. As of January 2011, only two compilers implemented the full Fortran 2003 standard:

  • The IBM XL Fortran compiler,

  • The Cray Compiler Environment.

However, it appears that the Numerical Algorithms Group (NAG), Gnu Fortran (gfortran), and Intel compilers are advancing rapidly enough that they are likely to have the features required to compile the code in this book by the time of publication (Chivers and Sleightholme 2010).

Type
Chapter
Information
Scientific Software Design
The Object-Oriented Way
, pp. 31 - 56
Publisher: Cambridge University Press
Print publication year: 2011

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×