LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Graziano Giuliani (giuliani_at_[hidden])
Date: 2004-05-24 02:04:42


On Saturday 22 May 2004 02:19, Marcelo Barreiro wrote:

>
> When I run my program (in pgf90) I get the following error, and the program
> stops:
>
> 0: init_descriptor: invalid target descriptor

I do use GNU c/c++ together with Portlad F90 with no problem, but one with a
program not passing null arguments to MPI_Init. The snippet was from a C
routine inside RAMS model source code.

[...]

int argc;
char **argv;

MPI_Init(&argc, &argv);

[...]

The problem was solved simply using:

[...]

/*
int argc;
char **argv;

MPI_Init(&argc, &argv);

*/

MPI_Init(NULL, NULL);

[...]

Note this problems did not show up with MPICH or using Intel compilers.
Hope this helps.
                           Graziano.

-- 
LaMMA - Laboratorio per la Meteorologia e la Modellistica Ambientale
        Laboratory for Meteorology and Environmental Modelling
Via Madonna del Piano, 50019 Sesto Fiorentino (FI)
   tel: + 39 055 4483049
   fax: + 39 055 444083
   web: www.lamma.rete.toscana.it
e-mail: giuliani_at_[hidden]