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

idb-Problem with FPE

rossow74atfsg
Beginner
523 Views
Hello,

we recognized a problem using the idb-Debugger with ifort.
We compile out Programs with the option -fpe0.
Here is a small example showing the problem.

program test
implicit none
real :: x,y
x= 3.0E-22
y=x**2
write(*,*) x,y
end program

When executing the program there is no problem.
Result: 2.9999999E-22 0.0000000E+00
But while debugging, the Debugger sends an "Thread received signal FPE"

With the Debugger Command ignore FPE the problem does not exist.

Is there any possibility to set this option by default?

Normally I would expect the Debugger to get the settings out of the program.

Greetings,
Hauke

0 Kudos
2 Replies
TimP
Honored Contributor III
523 Views
Maybe I'm missing something, but I thought the reason for setting -fpe0 is to enable exceptions.
0 Kudos
rossow74atfsg
Beginner
523 Views
fpe0 is there for enable exceptions but if there is a underflow exception the value should be set to 0.
In the shown example it works but the Debugger is the problem.
0 Kudos
Reply