Error handling in Fortran 2003
Abstract
Although the Fortran programming language is evolving steadily, it still lacks a framework for error handling-- not to be confused with floating point exceptions. Therefore, the commonly used techniques for handling errors did not change much since the early days and do not benefit from the new features of Fortran 2003. After discussing some historical approaches, a Fortran 2003 framework for error handling is presented. This framework also proved to be valuable in the context of unit testing and the design-by-contract (DBC) paradigm.
References
[1]
E. Anderson, Z. Bai, C. Bischof, S. Blackford, J. Demmel, J. Dongarra, J. Du Croz, A. Greenbaum, S. Hammarling, A. McKenney, and D. Sorensen. LAPACK Users' Guide. Society for Industrial and Applied Mathematics, Philadelphia, PA, third edition, 1999. ISBN 0-89871-447-8 (paperback).
[2]
J. Burkardt. Xerror error message handler. URL http://people.sc.fsu.edu/~jburkardt/f_src/xerror/xerror.html.
[3]
R. Cools and A. Haegemans. Algorithm 824: CUBPACK: a package for automatic cubature; framework description. ACM Trans. Math. Softw., 29(3):287--296, 2003. ISSN 0098-3500.
[4]
J. J. Dongarra, C. B. Moler, J. R. Bunch, and G. Stewart. LINPACK Users' Guide. Society for Industrial and Applied Mathematics, Philadelphia, PA, USA, 1979. ISBN 0-89871-172-X (paperback).
[5]
B. S. Garbow, J. M. Boyle, J. J. Dongarra, and C. B. Moler. Matrix Eigensystem Routines -- EISPACK Guide Extension, volume 51 of Lecture Notes in Computer Science, Editors: G. Goos and J. Hartmanis. Springer-Verlag, Berlin, Germany / Heidelberg, Germany / London, UK / etc., 1977. ISBN 0-387-08254-9, 3-540-08254-9.
[6]
A. Geist, A. Beguelin, J. Dongarra, W. Jiang, R. Manchek, and V. Sunderam. PVM: Parallel virtual machine: a users' guide and tutorial for networked parallel computing. MIT Press, Cambridge, MA, USA, 1994. ISBN 0262571080.
[7]
ISO/IEC JTC1/SC22. Information technology Programming languages Fortran Part 1: Base Language. Technical report, ANSI, October 2003.
[8]
R. E. Jones and D. K. Kahaner. XERROR, the SLATEC error-handling package. Software: Practice and Experience, 13(3):251--257, 1983. ISSN 1097-024X.
[9]
Message Passing Interface Forum. MPI: A Message Passing Interface Standard Version 2.2, September 2009.
[10]
B. Meyer. Object-Oriented Software Construction. Prentice Hall Professional Technical Reference, 2 edition, 1997.
[11]
B. T. Smith, J. M. Boyle, J. J. Dongarra, B. S. Garbow, Y. Ikebe, V. C. Klema, and C. B. Moler. Matrix Eigensystem Routines -- EISPACK Guide, volume 6 of Lecture Notes in Computer Science, Editors: G. Goos and J. Hartmanis. Springer-Verlag, Berlin, Germany / Heidelberg, Germany / London, UK / etc., 1976. ISBN 0-387-06710-8.
[12]
The Numerical Algorithms Group. The NAG Fortran 90 Library (fl90) Manual. Oxford, United Kingdom, 4 edition, 2000.
[13]
The Numerical Algorithms Group. The NAG Fortran Library Manual. Oxford, United Kingdom, 22 edition, 2009.
Recommendations
Postprocessor for structured FORTRAN
ACMSE '76: Proceedings of the 14th annual ACM Southeast Regional ConferenceStructured FORTRAN is an extension of FORTRAN language with constructs like DO WHILE, CASE, IF THEN ELSE, etc., that will allow people to write structured programs in FORTRAN. Many preprocessors have been. developed for various versions of structured ...
Comments
Information & Contributors
Information
Published In
Copyright © 2012 Authors.
Publisher
Association for Computing Machinery
New York, NY, United States
Publication History
Published: 24 July 2012
Published in SIGPLAN-FORTRAN Volume 31, Issue 2
Check for updates
Qualifiers
- Column
Contributors
Other Metrics
Bibliometrics & Citations
Bibliometrics
Article Metrics
- 0Total Citations
- 320Total Downloads
- Downloads (Last 12 months)3
- Downloads (Last 6 weeks)0
Reflects downloads up to 21 Sep 2024
Other Metrics
Citations
View Options
Get Access
Login options
Check if you have access through your login credentials or your institution to get full access on this article.
Sign in