Classical FORTRAN
Home > Computing and Information Technology > Computer programming / software engineering > Programming and scripting languages: general > Classical FORTRAN: Programming for Engineering and Scientific Applications
Classical FORTRAN: Programming for Engineering and Scientific Applications

Classical FORTRAN: Programming for Engineering and Scientific Applications


     0     
5
4
3
2
1



Out of Stock


Notify me when this book is in stock
About the Book

Classical FORTRAN is a college text, self-study guide, and reference about computer programming for numerical calculations. The book features a conversational, classroom-proven style that is easy to read and contains numerous case studies and examples. The author provides practical advice on program design, documentation, and coding style and unusually detailed coverage of floating-point arithmetic. He thoroughly discusses performance measurement and optimization and introduces parallel processing using MPI, FORTRAN-90, High Performance FORTRAN, and vector processing. The author also gives expert advice on dealing with troublesome legacy codes.

Table of Contents:
PREFACE INTRODUCTION Why Study Programming? The Evolution of FORTRAN Why Study FORTRAN? Classical FORTRAN About This Book . Motivation . Audience . Organization . Pedagogical Approach . Typographical Conventions . Computing Environment Dependencies Advice to Instructors About the Author Acknowledgements Disclaimers Exercises HELLO, WORLD! Case Study: A First FORTRAN Program Compiling the Program Running a Program in Unix Omissions Exercises EXPRESSIONS AND ASSIGNMENT STATEMENTS Constants Variables and Variable Names Arithmetic Operators Function References Expressions Assignment Statements READ and PRINT Omissions Exercises CONDITIONALS AND BRANCHING Flowcharting The GO TO Statement The IF-THEN Statement The Logical IF Statement Flowcharting Reconsidered Additional Examples Omissions Exercises SCALAR DATA TYPES Integers Reals Roundoff Errors Type Conversions Case Study: Computing the Sine Other Data Types . Complex Numbers . Logicals . Bits, and Hexadecimal Numbers Some Special Values Architectural Variations Omissions Exercises ARRAYS AND DO LOOPS Vectors The DO Loop Matrices The Rules of DO Loops Array Dimensioning Case Study: Matrix Multiplication Omissions Exercises SUBPROGRAMS SUBROUTINE Subprograms Call by Reference FUNCTION Subprograms Case Study: Bisection Detecting First Entry FORTRAN, System, and Library Routines . FORTRAN Built-In Functions . Unix System Routines . Subprogram Libraries Conclusion and Omissions Exercises ADJUSTABLE DIMENSIONS AND EXTERNAL Adjustable Dimensions . Assumed-Size Arrays . Passing Leading Dimensions EXTERNAL . Fixed Subprogram Names . Passing Subprogram Names Summary and Omissions Exercises COMMON Passing Data Through Passing Data Around Alignment . Alignment by Order . Alignment in Memory Formal Parameters and COMMON Arrays in COMMON BLOCK DATA Omissions Exercises INPUT AND OUTPUT READ and WRITE . FORMAT Statements . Cursor Control . End-of-File and Error Conditions Case Study: Descriptive Statistics Implied DO Loops Unit Assignments . Interactive Programs . Attaching Files with GETFIL . Batch Programs The Case Study Revisited Positioning in Files Unformatted I/O Cautions and Omissions Exercises CHARACTER VARIABLES How Characters Are Stored Writing Out and Reading In CHARACTER Variables Editing Character Strings Object-Time FORMATs Case Study: QUERY CHARACTER Variables in Other Contexts . Reading From and Writing to CHARACTER Variables . Using CHARACTER Variables in OPEN . CHARACTER Functions Character Graphics . X-Y Plots . Contour Plots Omissions Exercises MEMORY MANAGEMENT TECHNIQUES Passing Array Columns Partitioning Workspace Sharing Workspace Sharing Constant Data Storing a Symmetric Matrix Sparse Matrix Techniques . Fixed Pattern . Varying Pattern Linked Lists Omissions and Caveats Exercises DESIGN, DOCUMENTATION, AND CODING STYLE The Craft of Programming Design . User Interface Design . Program Design Documentation . External Documentation . Internal Documentation Coding Style . Cognitive Complexity . Names . Branching Logic . Exposition . Typography . Refining the Comments Hand-Checking Testing, Revision, and Maintenance . Testing . Revision and Maintenance Conclusion and Omissions Exercises ARCHAIC, UNUSUAL, AND DANGEROUS USAGES Source Form . Sequence Numbers . Dead Code . Free-Form Source . INCLUDE Files . The PROGRAM Statement . No STOP Statement . Star and Blank Comments . Other Continuation Characters Expressions and Assignment Statements . Precedence Dependencies . Long Names Conditionals and Transfer of Control . ELSE IF . The Arithmetic IF . The Computed GO TO . Free Loops Scalar Data Types . Mixed Mode . Generic Functions . IMPLICIT . IMPLICIT NONE . Other Data Types . Other Forms of Type Declaration . Abuses of EQUIVALENCE Arrays and DO Loops . The DIMENSION Statement . Abuses of DO Loops . Abuses of CONTINUE . DO WHILE Subprograms . Alternate RETURNs . ENTRY . Abuses of Subprogram Arguments . Call by Value . Functions Without Arguments . Statement Functions . Archaic Names for Built-In Functions Adjustable Dimensions and EXTERNAL . Arrays Dimensioned (1) . Overuse of EXTERNAL COMMON . Indiscriminate Use of COMMON . Extending COMMON by EQUIVALENCE . References Past the End of an Array . Blank COMMON . Arrays Dimensioned in COMMON Statements Input and Output . Carriage Control . Scale Factors . Hollerith Strings in FORMATs . Printing Leading Zeros . Formatted READs . Direct-Access I/O . NAMELIST Character Variables . Characters in Variables of Other Types . Arithmetic With Characters . Substrings, Concatenation, and Character Built-Ins Case Study: A Legacy Code . Source Listing . Observations . Cleaning Up the Mess Conclusion and Omissions Exercises UNIX ISSUES Using the Compiler . Naming the Executable File . Checking Array Subscripts . Other Compiler Options Operating System Services . Current Date and Time . I/O Units and Files . Shell Variables . Command Line Arguments . Issuing Unix Commands . Setting a Return Code Debugging and dbx . Compile-Time Errors . Run-Time Errors . Debugging with Output Statements . Vanishing Bugs . The dbx Debugger Automatic Compilation with make . Incremental Recompilation . Deciding Which Routines to Recompile Libraries . Using Libraries . Building Libraries Writing Custom Manual Pages . How the man Command Works . Your man Directory . The Page Template . A Typical Page Definition . Processing the Page Definition . How man Finds Your Custom Pages . Printing man Pages Omissions Exercises MEASURING AND MAXIMIZING SERIAL EXECUTION SPEED Measuring Serial Execution Speed . The Unix time Command . Statistical Profiling with prof . System Subprograms for Measuring CPU Time . Direct Profiling with TIMER . Operation Counting Tuning FORTRAN Source Code . Algorithm Implementation Details . Variable Typing and Initialization . Arithmetic Expressions . Exponentiation . Conditionals . Loops and Indices . Memory Reference Patterns and Stride . I/O Considerations . Subprograms . COMMON . Summary Omissions Exercises VECTOR AND PARALLEL PROCESSING Vector Processing . Scalar Machine Instructions . Vector Machine Instructions . Pipelining . Amdahl's Law . Vector Compilers and Performance Tuning . Case Study: Tuning Code for Vectorization Parallel Processing . Problem Decomposition . Message Passing . Case Study: Functional Decomposition . Case Study: Domain Decomposition . Amdahl's Law Revisited . Deadlocks and Races Omissions Exercises FORTRAN-90 AND HPF FORTRAN-90 . Array Operations . Dynamic Memory Allocation . Other New Features . Case Study: Matrix Multiplication . Omissions High Performance FORTRAN . Data Parallel Programming . Parallelization by HPF . Distributing Data . Expressing Concurrency . Using Subprograms . Case Study: Integration Again . Caveats . Omissions The Future of FORTRAN Exercises SOME UTILITY ROUTINES Number-Numeral Conversions . Integer to Numerals . Numerals to Integer String Insertions . Inserting an Integer Into a String . Inserting One String Into Another Attaching a File Arithmetic with Two-Part Values . Addition and Subtraction . Normalization . Conversion To and From REAL*8 . Scaling Measuring CPU Time . Algorithm . Implementation A Shell Script for Global Edits Caveats and Omissions Exercises BIBLIOGRAPHY Suggested Reading Technical References Other References INDEX


Best Sellers


Product Details
  • ISBN-13: 9780824744250
  • Publisher: Taylor & Francis Inc
  • Publisher Imprint: Marcel Dekker Inc
  • Language: English
  • No of Pages: 760
  • ISBN-10: 082474425X
  • Publisher Date: 03 Dec 2009
  • Binding: Digital (delivered electronically)
  • No of Pages: 760
  • Sub Title: Programming for Engineering and Scientific Applications


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Classical FORTRAN: Programming for Engineering and Scientific Applications
Taylor & Francis Inc -
Classical FORTRAN: Programming for Engineering and Scientific Applications
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Classical FORTRAN: Programming for Engineering and Scientific Applications

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals

    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!