Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Help on Mpi derived datatype for class with static members
From: George Bosilca (bosilca_at_[hidden])
Date: 2010-12-09 10:23:58


You will have to use the MPI_Type_create_struct (http://www.open-mpi.org/doc/v1.5/man3/MPI_Type_create_struct.3.php).

  george.

On Dec 8, 2010, at 16:04 , Santosh Ansumali wrote:

> Dear all,
> I am confused with the use of MPI derived datatype for classes with
> static member. How to create derived datatype for something like
> class test{
> static const int i=5;
> double data[5];
> }
>
> Thanks for your help!
> Best,
> Santosh
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users