Fortran/error handling

From Wikibooks, open books for an open world
< Fortran
Jump to: navigation, search

Fortran is not real big on catching errors. Typically in an error situation, your program will stop, and you'll get an error message. The only exception to this is that at the end of READ and WRITE statements' parenthesized control list, you can add , ERR=lineNumber to determine which line to jump to in the event of an error.