gfortran and output file length

Steve Kargl sgk@troutmask.apl.washington.edu
Sun Apr 18 18:44:00 GMT 2010


On Sun, Apr 18, 2010 at 11:15:31AM -0700, johns wrote:
> 
> The original code would not be fun for you to follow so I did a lot of
> debugging and found the essence of the problem that can be demonstrated
> using simpler code (see below).  When I examine file 'testout' while the
> program is waiting for a response for the option, it is complete up to
> writing 9720 values.  When ctrl z is entered, no more is written. Any other
> entry and the file will be complete. 
> 

You still haven't supplied sufficient information to help you.
What operating system?  ctrl-z on any unix-like operating
system with all the shells I've used will suspend the process.
( There is an exception, but this requires you put your terminal
in raw mode.)  This may include not flushing the output buffer.
Yes, IO is buffered.  Add a flush statement after the write if
you want the buffers to be flushed.

-- 
Steve



More information about the Fortran mailing list