Newsgroups: comp.parallel.mpi
From: Stephen O'Sullivan <so@cp.dias.ie>
Subject: io problems on shared files
Organization: Dublin Institute for Advanced Studies
Date: Mon, 28 Apr 1997 18:03:02 +0100
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <3364D846.2C8C@cp.dias.ie>

I am having a lot of trouble getting multiple processes to append output
to a single file. The results look like there is a synchronization
problem or that the streams are not properly established when connecting 
to a file which another process has written. The output is sometimes
overwritten completely or partially. This happens for both the standard
io library (in C) and the low level system io library functions.
I have tried explicitly flushing the buffer, locking  the file, clearing
the file pointer to NUll after use and more. Outputting to standard
output and piping to file gives the complete output without the problems
described above-I have no idea what this could mean.
If anyone has come across this sort of problem I would be grateful for
their correspondence because I'm about to give up.
  
-- 
===========================================================================
Stephen O'Sullivan                      | Telephone: +353-1-6621333 
School of Cosmic Physics                | Facsimile: +353-1-6621477
Dublin Institute for Advanced Studies   |     email:  so@cp.dias.ie   
5 Merrion Square                        |     
Dublin 2  Ireland                       | WWW:
http://atlas.cp.dias.ie/~so/
===========================================================================

