I am getting an invalid floating point operation error in release mode, which is not the case in the debug mode.I do not think thatthis is because of project setting differences between these two modes, since I already tried almost every combination.
The most interesting point is, I get the same error also in debug mode with "debug information format = line numbers only".
I get the error in the following line:
if (x .gt.0 .and. y .gt. 0) then
check=.not. ((REAL(t)/x .le. p/y).and.(REAL(t)/x .lt. 2))
check = .true.
However, unfortunately,I cannot see the current values of these variables since debug information format is
"line numbers only".
When I put a write statement in front of the lines above, the problem interestingly disappears.
What may be the problem ? Someting about compiler optimization or floating point stack ?