From: "Yon Han CHONG" <Y.H.Chong@Cranfield.ac.uk>
Newsgroups: comp.parallel.mpi
Subject: Re: Redirecting stdin with mpirun
Date: Sun, 13 Jun 1999 20:10:10 +0100
Organization: Sirius Cybernetics Corporation
Message-Id: <3764023a.0@news.cranfield.ac.uk>
References: <37613EDE.379AD616@lanl.gov>
Xref: ukc comp.parallel.mpi:5188


Why do you want to input this way, any way? I thought rediection is not part
of Fortran standard (even though it is for C).

I would just open files from the program using

      open (unit=.....

command.

-------------------------------------------------------------------------
Yon Han CHONG                     |
Flow Control and Prediction Group | Tel: + 44 1234 750 111 ext.5420/5356
Cranfield College of Aeronautics  | E-mail: Y.H.Chong@cranfield.ac.uk
Cranfield University              | Mobile: + 44 958 381 395
United Kingdom                    | Fax: + 44 1234 752 149
-------------------------------------------------------------------------

Fabrizio Petrini <fabrizio@lanl.gov> wrote in message
news:37613EDE.379AD616@lanl.gov...
> 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
>
>
>

