Newsgroups: comp.parallel.mpi
From: thimm@physik.fu-berlin.de (Axel Thimm)
Subject: Re: How do you set current directory for programs running MPI?
Organization: FU Berlin, Fachbereich Physik, Institut fuer Theoretische Physik
Date: Fri, 17 May 1996 21:29:22 GMT
Message-ID: <4nir1i$ne4@fu-berlin.de>

Jaroslaw Tuszynski <jarek> wrote:

>I am not sure if it is an MPI question or LAM question (LAM is the
>implementation of MPI I use), but I can not figure out how to open local files
>on each node.
[...]
> The same problem with the output files, I create
>them in the "current" subdirectory but each node puts them somewhere else on my
>system: sometimes in my home directory, sometimes where I start my program
>from.
>I would greatly appriciate any help I can get. And if you know how to do it
>with other implementations (like MPICH) please let me know too, becouse if I
>donot figure it out on the LAM than I will try other implementations.
>Thanks in advance
>jarek

The MPI 1 (MPI report 1.1) standard does not include any special IO
options. (Maybe in MPI 2).
So, for one, if you want to have a portable program, you wouln't try to
use special implementaion specific tricks.
You could try reading your environment, e.g. the HOME variable, and cd
to it from within your program, or use it in creation of filenames.

Regards,
	Axel.

PS. posted and personally emailed.
--
Axel Thimm <thimm@physik.fu-berlin.de>
Freie Univ. Berlin, Fachbereich Physik, Inst. fuer Theor. Physik
Arnimallee 14, D-14195 Berlin, Raum 0.4.08, Tel: 838-4774


