Hi Carlos,
simply you can send all object's field and rebuild new object in destination process. Maybe, you have to delete old object in source process. Remember that you can't send address (eg: pointers) because they refera in local memory. If you want to do "deep copy" of object, you have to send the entire structures pointed to.
Mr. Andreas,
(English) I tried to apply MPI_Type_create_struct(), which is
correct for C Struct, as showed
(https://hec.wiki.leeds.ac.uk/pub/Techniques/ParallelComputing/MPI_course.pdf).
But, I can't solve it for C++ object.
(Portuguese) Eu tentei aplicar MPI_Type_create_struct(), que
funcionou em Struct do C, como mostrado em
(https://hec.wiki.leeds.ac.uk/pub/Techniques/ParallelComputing/MPI_course.pdf).
Mas eu não consegui resolvê-lo para objetos em C++.
Thank you,
Grato,
Carlos
_______________________________________________
users mailing list
users@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users