Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Break on underflow

tmcole
Beginner
600 Views
I seem to remember that it is possible to get CVF to break on the offending line when encountering an underflow, but I can't remember exactly how to do it. Can this be done?
0 Kudos
5 Replies
Steven_L_Intel1
Employee
600 Views
Project..Settings..Fortran. Under Floating Point, change Floating Point Exception Handling from 3 to 0. Under Run Time, check Floating Point Underflow.

Steve
0 Kudos
tmcole
Beginner
600 Views
Thanks Steve - you are a scholar and a gentleman.
0 Kudos
tmcole
Beginner
600 Views
Steve,

I finally got back around to implementing this, and it doesn't work. I get an error message regarding floating underflow, but it does not stop program execution and leave me on the offending line. Any other suggestions?
0 Kudos
Steven_L_Intel1
Employee
600 Views
Hmm. Ok, in the debugger, select Debug..Exceptions. Change the action for floating underflow to "Stop Always". Run program.

Steve
0 Kudos
tmcole
Beginner
600 Views
In case anyone else wants to use this valuable feature, you have to be interactively debugging a program for the "debug" button to appear.
0 Kudos
Reply