Re: Problem with log function - Intel fortran compiler under Linux



On 4 okt, 15:35, Arjen Markus <arjen.mar...@xxxxxxxxxx> wrote:
Hello,

we are experiencing a rather nasty problem with the Intel Fortran
compiler under Linux
(version 9.0). The program is big and so far we have not been able to
trim the code
so that a moderately sized program displays the problem too.

The point is this:

The first application of the log function on double precision reals
causes
an NaN (while the argument is a perfectly acceptable value of about
0.6).

If we add a dummy statement like:

aa =log(r)

as one of the first statements, the value of aa becomes NaN and some
later computations
succeed. (NaNs occur at a different positions).

Here is some more information:

Intel Fortran: 9.0
Linux: Red Hat Enterprise Linux, ES release 4.

Has anyone encounter similar problems? Does anyone know how to solve
this problem?

Regards,

Arjen

Of course it has nothing to do with log().

I have found one problem: a file was read that was in
DOS format. The code is rather complicated but it caused
the program compiled with gfortran to choke in a routine
that I had seen to give problems before (thanks, Fly Away):
an array or rather character bound violation.

So that problem was easily fixed.

Now there are still NaNs appearing, so my search continues.
But at least there is a bit of progress.

Thanks to all for the suggestions.

Regards,

Arjen


.



Relevant Pages