[mpich-discuss] MPI_Datatype for a structure containing pointers
Aya Aya
aya_tounsi at hotmail.fr
Mon Feb 4 03:45:23 CST 2013
Good morning,
I want to send (scatter) an array of N element of the structure below, with sizeof(Tab)=T
struct bloc
{
int T;
double *Tab;
};
typedef struct bloc BLOC;
I wonder if it is possible to create a new MPI_Datatype for this structure (the size of Tab depends on T), or the only way is to sent it as an array (using Scatterv).
Thanks for your help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20130204/7b7d8348/attachment.html>
More information about the discuss
mailing list