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/
|