-
One other option on the scheme of "variable size element in a struct" is if you just add all the array sizes together, and then make one long array.
Let's say you have 10 of array a, then 100 of the array b and c.
So on the one side, you fill in 0-9 with the contents of a, then 10-109 with b, then 110-209 with c.
On the "other side", you fetch the data out by:
a = &array[0];
b = &array[10];
c = &array[110];
--
Mats
-
I may try this, it seems a little easier to implement, at least for me.
thanks again
-
Is there anybody from the member who has a program Palindrome Using MPI