Re: [OMPI users] Send data structures

2010-10-12 Thread Jeff Squyres
Have a look at MPI_Type_create_struct(). http://www.open-mpi.org/doc/v1.5/man3/MPI_Type_create_struct.3.php On Oct 12, 2010, at 11:28 AM, Ed Peddycoart wrote: > The data that I want to send via MPI is in the form of a struct: > > struct myDataStruct { >struct subData1 { > int p

[OMPI users] Send data structures

2010-10-12 Thread Ed Peddycoart
The data that I want to send via MPI is in the form of a struct: struct myDataStruct { struct subData1 { int position[2]; int length[2]; }; struct subData2 { float *data1; float *data2; float *data3; float *data4; }; struct subData3 { float