thanks !!!
 It works !

Jack

> Date: Wed, 23 Jun 2010 11:38:19 +0200
> From: riccardo.murri@gmail.com
> To: boost-users@lists.boost.org
> Subject: Re: [Boost-users] boost MPI user-defined datatype.
>
> Hello Jack,
>
> On Wed, Jun 23, 2010 at 2:08 AM, Jack Bryan <dtustudy68@hotmail.com> wrote:
> > Where can I find some boost.MPI example program about how to transfer
> > user-defined datatype from
> > one process to another process ?
> >
>
> Boost.MPI uses Boost.Serialization to transfer C++ class instances;
> it handles the lower-level details of user-defined MPI datatypes for
> you. So, you should just provide serialization support for all your
> objects, and then you can just send/recv them directly.
>
> I attach a very simple example, using a class to send the usual "hello
> from rank XX" message.
>
> Cheers,
> Riccardo


The New Busy is not the old busy. Search, chat and e-mail from your inbox. Get started.