I’m new to using pgfortran. Up to recently I’ve been using the Intel fortran compiler, but am porting the code to run on our cluster which doesn’t have that compiler. The code I’m compiling has been working perfectly on a very similar system (Linux CentOS 64 bit), but when I compile with pgfortran and run it, I get NaN’s.
I found a posting about detecting NaN’s and have used the code listed to find when a certain variable is NaN. The oddest thing is that when I print the values of two other vairables that are summed to give the value of the variable, each of them are ordinary reasonable numbers. That makes me think that there must be some sort of memory error. Any advice on what could be the cause of this and how to diagnose the problem would be appreciated. As far as I can tell pgfortran doesn’t offer much in the way of runtime checking, but if I’m mistaken about that, I’d like to know how to enable it.