Quote:
> Is it possible to prevent long lines, in output files produced using WRITE
> statements, from being wrapped up? I have some large matrices and I can't get
> each row to be written in a single long line. All my output files get wrapped
> up around column 72.
> Any help will be greatly appreciated.
> Paulo Greco
Your problem is not Fortran, but the interaction of your operating
system with the display device you are using. Clearly, you cannot write more
than 72 characters to a device that's only 72 characters wide (though I'd expect
any terminal device to be 80 characters)
If you are writing the output directly to the terminal, then you may be
encountering situations such as on some HP systems which just won't write
over 80 characters to the screen, they will abort with an i/o error.
If you write to a file, then the longest record you can write is determined
by the OPEN statement and the operating system. (Usually has limits about 32000
or more characters/record)
If you truly want to see the output on the screen, and then you could
use a FORMAT which indents line one and doesn't indent all following lines,
something like:
9000 FORMAT(1X, 7X,6F10.2/(1X,7F10.2))
oops, don't remember if I need a trailing slash after the 7f10.2....
The 1X's are for carriagle control. Depending on the system, they may or may not
be needed. (There was a thread on this topic recently, either here or in the
mail-group, forget which)
_______________________
|Ralph Jay Frisbie |
|A flying saucer lover, |
|but not the inventor. |
|-----------------------