From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078708811790.tru64-unix-managers.marc@archive.invalid> From: Oyanarte Portilho Date: Mon, 25 May 1998 13:55:05 +0000 To: tru64-unix-managers Subject: [Summary] a Fortran question X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078708811790 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 Barry Treahy Valentin Nakov K.McManus@greenwich.ac.uk Precise directions came from: Roberto Alves Nogueira (from the AIX-L list) Jim Belonis 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