I am trying to debug with GDB, and am encountering an arithmetic error when trying to compare two values.
The first value is set at the top of the module as double precision, parameter, public :: Dint = -1.D99
The second value happens to be inta = 102 inside the subroutine being called.
The comparison happens within a subroutine as If (Inta /= int(Dint)) then
I've tried looking at the value for Dint by typing p Dint, but it says it is not in current context. I suspect it may have been optimized out, or perhaps there is a certain syntax needed to see variables at the top of a module.
I also suspect maybe there could be an issue in attempting to convert this double precision to an integer, but I think it is working in other cases.
Any insight might be helpful.