From: Kevin Roy <zzcgukr@scooby.mvc.mcc.ac.uk>
Newsgroups: comp.parallel.mpi
Subject: Re: Redirecting stdin with mpirun
Date: Thu, 17 Jun 1999 16:47:30 +0100
Organization: Sirius Cybernetics Corporation
Message-Id: <37691892.8DB05B1C@scooby.mvc.mcc.ac.uk>
References: <37613EDE.379AD616@lanl.gov>
Reply-To: Kevin.Roy@mcc.ac.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Xref: ukc comp.parallel.mpi:5214


I don't know if this is exactly convenient but you could use an assign
statement before you run your program.  Assign unit normally assosciated
with stdin  to your filename, I am not 100% sure of the syntax try man
pages.

Kevin.




Fabrizio Petrini wrote:

> Hi there,
>
> I would like to run a Fortran program that expects its input form the
>
> standard input.
>
> On a single processor  running
>
>     program.mpi < input_file
>
> works fine.
>
> If I try to run it on more processors
>
>     mpirun -n2 program.mpi < input_file
>
> or
>
>     mpirun -n2 "program.mpi < input_file"
>
> don't seem to work, because the standard input is redirected to mpirun
>
> rather than to the application
>
> Any suggestions?
>
> Thanks for your help
>
> Fab
>
> --
>
> Fabrizio Petrini
> Scientific Computing Group (CIC-19)      phone : (505) 665-2969
> MS B256                                  fax   : (505) 667-1126
> Los Alamos National Laboratory           e-mail: fabrizio@lanl.gov
> Los Alamos, NM 87545 -- USA              http://www.c3.lanl.gov/~fabrizio

