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