1 | Customized ObjectOutputStream replaces primitive arrays with short ArrayProxy object. Separate Vector holding the Java arrays is produced. |
2 | "Data-less" byte stream sent as header. |
3 | New ObjectInputStream yields Vector of allocated arrays, not writing elements. |
4 | Elements then sent in one comm using MPI_TYPE_STRUCT from vector info. |