tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Oyanarte Portilho <portilho () fis ! unb ! br>
To: tru64-unix-managers
Subject: [Summary] a Fortran question
Date: Mon, 25 May 1998 13:55:05 +0000	[thread overview]
Message-ID: <96078708811790.tru64-unix-managers.marc@archive.invalid> (raw)

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

                 reply	other threads:[~1998-05-25 13:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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