Re: [O-MPI users] How pass an structure

2005-08-26 Thread George Bosilca
First of all with your approach you're not sending all the structure. You will just send the num_Rocs and the elements, missing the num_Cols member off the structure. The problem come from the fact that lena[0] is set to 1 not 2. Another problem (which I don't think it can happens with this

Re: [O-MPI users] How pass an structure

2005-08-25 Thread George Bosilca
First of all with your approach you're not sending all the structure. You will just send the num_Rocs and the elements, missing the num_Cols member off the structure. The problem come from the fact that lena[0] is set to 1 not 2. Another problem (which I don't think it can happens with this

Re: [O-MPI users] How pass an structure

2005-08-25 Thread Raul Mosquera
Hi: I'm trying to pass an structure which is defined like this #include #include #include "mpi.h" #define NELEM 6 struct{ int num_Rows; int num_Cols; int element[NELEM]; }send_pack; //num_Rows and num_Cols identify the matrix being passed in the array element. // Variable