Hi Ted,
> On the systems I've run across, writes to unit 0 (stderr for almost all
> fortran implementations) are automatically flushed on writes, or at the very
> least flushed frequently enough that you might not notice unless you get
> really picky. But you probably knew that already ;-)
No I didn't know that :). We've always used the philosophy of avoiding
the first 10ish units just in case there are problems opening the stdin
and stdout unit numbers as files. I can't remember if we ever did have
problems or if it was just rumour.... I'd rather not make assumptions
about unit numbers that are not in the standard either. Does unit 0 still
flush after each write if you open it as a file, or just if you leave it
as stderr?
Using specific unit numbers is not our style either; we have a unit number
module that keeps track of what unit numbers we are using, and it does not
differentiate what the purpose of the file will be. One could have
multiple stderr files for some reason....
Regards,
Daniel.
------------------------------------------------------------------------
Dr. Daniel Grimwood Department of Chemistry
Email : [log in to unmask] The University of Western Australia
Phone : +61 8 93808563 35 Stirling Highway
Fax : +61 8 93801005 Crawley WA 6009
|