Newsgroups: comp.parallel.mpi
From: Volker Scheer <scheer@raibm01.informatik.uni-tuebingen.de>
Subject: I/O with MPI
Organization: InterNetNews at ZDV Uni-Tuebingen
Date: Tue, 2 Apr 1996 10:08:06 +0100
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Message-ID: <Pine.A32.3.91.960402095720.33534A-100000@raibm01.informatik.uni-tuebingen.de>

Hi everybody,
I am porting a program from NX to MPI using MPICH and gcc 2.7.2 on an 
RS/6000. My problem is 
the buffering in MPI. The output-buffering can be stopped using 

            setbuf(stdout, (char *) 0);

I think, it could be the same for stdin. But it does not work. 
I'm trying to read from stdin with 

               c = getc (input) 

with input is declared as FILE * and in my case this is stdin.
I don't get any character ... fgetc doesn't work neither. 
Without MPI, getc works fine.

Can anybody help me? Thanks.

Volker Scheer

