Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 9/08/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Values Returned at Program Termination

An Intel® Fortran program can terminate in a number of ways. On Linux* and macOS, values are returned to the shell.

  • The program runs to normal completion. A value of zero is returned.

  • The program stops with a STOP or ERROR STOP statement. If an integer stop-code is specified, a status equal to the code is returned; if no stop-code is specified, a status of zero is returned.

  • The program stops because of a signal that is caught but does not allow the program to continue. A value of '1' is returned.

  • The program stops because of a severe runtime error. The error number for that runtime error is returned. See Understanding Runtime Errors and related topics.

  • The program stops with a CALL EXIT statement. The value passed to EXIT is returned.

  • The program stops with a CALL ABORT statement. A value of '134' is returned.