Re: <nul> Characters in Fortran 77



Andreas Ernst wrote:
Dear all:

I am working with a large scientific parallel code which uses unit 7 for formatted
output. However, at some point the code writes binary <nul> charachters
to unit 7 which is supposed to contain only ascii data.

The error is hard to debug since some debugging output to
unit 7 seems to be missing. Instead there are these <nul> characters.
The code has hundred's of WRITE statements to unit 7.

I am running the code on a Cray XD1 system with Portland pgf77
compiler using the version mpich-pgi601.

Please give me a hint how to find the IO command which produces
the <nul> characters.

Best regards,

Andreas

The universal answer for weird output is to check for program
errors. Try turning on all of the run-time (as well as compile-time)
error checking you can. Subscript bounds checking, argument mismatch
checking, and use of undefined variables are the most likely culprits.

Can you try the program with a different compiler? That usually
doesn't fix the problem, but it can help fix the blame.

*** Hendrickson
.


Quantcast