Re: [OMPI users] Difficulty with MPI_Unpack

2010-02-08 Thread Prentice Bisbal
Jed Brown wrote: > On Sun, 07 Feb 2010 22:40:55 -0500, Prentice Bisbal wrote: >> Hello, everyone. I'm having trouble packing/unpacking this structure: >> >> typedef struct{ >> int index; >> int* coords; >> }point; >> >> The size of the coords array is not known a priori, so it needs to be a >>

Re: [OMPI users] Difficulty with MPI_Unpack

2010-02-08 Thread Jed Brown
On Sun, 07 Feb 2010 22:40:55 -0500, Prentice Bisbal wrote: > Hello, everyone. I'm having trouble packing/unpacking this structure: > > typedef struct{ > int index; > int* coords; > }point; > > The size of the coords array is not known a priori, so it needs to be a > dynamic array. I'm trying

[OMPI users] Difficulty with MPI_Unpack

2010-02-07 Thread Prentice Bisbal
Hello, everyone. I'm having trouble packing/unpacking this structure: typedef struct{ int index; int* coords; }point; The size of the coords array is not known a priori, so it needs to be a dynamic array. I'm trying to send it from one node to another using MPI_Pack/MPI_Unpack as shown below.