tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* [Summary] a Fortran question
@ 1998-05-25 13:55 Oyanarte Portilho
  0 siblings, 0 replies; only message in thread
From: Oyanarte Portilho @ 1998-05-25 13:55 UTC (permalink / raw)
  To: tru64-unix-managers

Hi Gurus,

I have posted:

>> I have been using DEC Fortran for a long time, performing very
>> long calculations whose partial results are stored periodically
>> on disk so that if there is a power failure the work can be resumed
>> without much loss. Immediately after the partial result is available
>> the command WRITE can perform this with no problem.
>> 
>> On the other hand I am using also IBM XLFortran and this compiler
>> does not write on disk so promply - it accumulates the partial results
>> in a kind of buffer and only after there is a certain amount of data
>> in that buffer it actually flushes to disk. This is not working to
>> me since I am loosing much computational effort with frequent
>> machine uptime interruptions. Does anybody know how to solve this
>> difficulty? I have tried to open and close the file everytime I
>> have to write on it, but with no success.

and got replies from:

Stan Horwitz <stan@thunder.ocis.temple.edu>
Barry Treahy <treahy@allianceelec.com>
Valentin Nakov <vnakov@gepard.my.domain>
K.McManus@greenwich.ac.uk

Precise directions came from:

Roberto Alves Nogueira <bob@dedalus.lcc.ufmg.br> (from the AIX-L list)
Jim Belonis <belonis@dirac.phys.washington.edu>

Thanks to all of them. The solution is to use after the WRITE command
the routine flush_

      call flush_(#)

where # is the logical unit number defined in the OPEN statement. This 
enforces disk flushing after each WRITE.

Cheers,


	Oyanarte Portilho
	Institute of Physics
	University of Brasilia, Brazil

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-05-25 13:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-25 13:55 [Summary] a Fortran question Oyanarte Portilho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox