I use intel's ifort compiler for my Fortran code.
Sometimes I get an error during running:
forrtl: error (65): floating invalid
The compiler does not give the exact "invalid" reason. To my understanding, does this suggest one of the following?
- Underflow, which means too close to 0, e.g. 1e-30.
- Overflow, which means too large, e.g. infinity/-infinity, divide by zero.
- NaN.
This is useful because I can use if statement to check which one of these cases actually happened.
Beside, I'm using -g -traceback
option for debugging. Is there an option which gives more details?