I am using gfortran on Ubuntu 16.04 to compile a main file and a bunch of subroutine files written in Fortran 77. They are compiled without any error or warning but after running the executable file, I get "zero" and "NaN" everywhere in the result which is unexpected according to the released output of the original code.
After running the exe I get this note:
"Note: The following floating-point exceptions are signalling: IEEE_INVALID_FLAG IEEE_DENORMAL"
I also used the following flags in my makefile but they didn't make any difference:
FCFLAGS= -c -g -fbacktrace -ffpe-trap=zero,overflow,underflow