Intel® Fortran Compiler 17.0 Developer Guide and Reference
Elemental Module Intrinsic Subroutine (Generic): Stores the halting mode for an exception.
USE, INTRINSIC :: IEEE_EXCEPTIONS
CALL IEEE_GET_HALTING_MODE (flag, halting)
flag |
(Input) Must be of type TYPE (IEEE_FLAG_TYPE). It specifies one of the following IEEE flags: IEEE_DIVIDE_BY_ZERO, IEEE_INEXACT, IEEE_INVALID, IEEE_OVERFLOW, or IEEE_UNDERFLOW. |
halting |
(Output) Must be of type default logical. If the exception in "flag" causes halting, the result is true; otherwise, false. |
Consider the following:
USE, INTRINSIC :: IEEE_EXCEPTIONS
LOGICAL HALT
...
CALL IEEE_GET_HALTING_MODE(IEEE_INVALID, HALT) ! Stores the halting mode
CALL IEEE_SET_HALTING_MODE(IEEE_INVALID, .FALSE.) ! Stops halting
...
CALL IEEE_SET_HALTING_MODE(IEEE_INVALID, HALT) ! Restores halting