LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2005-09-30 16:26:10


On Sep 29, 2005, at 4:56 PM, burri_at_[hidden] wrote:

> MPI_Datatype *mpiDummy = NULL;
> [snip]
> DerivedTypeMPIDummyStruct(dummy, mpiDummy);

This is your problem -- mpiDummy is a pointer to NULL. You need:

MPI_Datatype mpiDummy;
DerivedTypeMPIDummyStruct(dummy, &mpiDummy);

That is, MPI does not allocate an MPI_Datatype handle for you -- you
need to pass a handle to MPI and MPI will fill it up for you.

Hope this helps.

-- 
{+} Jeff Squyres
{+} The Open MPI Project
{+} http://www.open-mpi.org/