Re: variable content lost



On Mar 30, 7:48 pm, nos...@xxxxxxxxxxxxx (Richard Maine) wrote:
Listad <lis...@xxxxxxxxx> wrote:
This might be completely unrelated, but I had trouble earlier with the
values of these arrays. Whenever I tried 'print *, fib%r(m,:)' in my
code the first element of the array changed to sth like 2.932434E-310.
In addition to that I either got 'segmentation fault' or a 'malloc-
exception'. After I changed the print statements to write statements
with explicit format the problem dissapeared ...

That value looks very much like one from type mismatch - interpreting
bits as double precision when the bits were generated as some other
type(s). This could be a symptom of something like a type mismatch in a
procdure call.

Yes, but the OP did write that

"All the code quoted here is in the same module which is the only
module in the file."

and I think all Fortran 95 compilers warn about type mismatches within
a module.

.