I have a structure :
struct vertex
{
double a; double b;
}
struct polygon
{
int numofVertex;
vertex *v;
}
How to send this nested structure in MPI using MPI_Send? The problem is that the structure contains pointer field "v" due to which MPI_Send crashes. I have tried MPI_Datatype to define new data type, it doesnot work. I read that serialization is the only solution but C doesnot provide such implementation. Any suggestions how to get around with this problem?