Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

From: Amit Kumar Saha (amitsaha.in_at_[hidden])
Date: 2007-10-31 14:01:22

On 10/31/07, Oleg Morajko <olegmorajko_at_[hidden]> wrote:
> Hello,
> I have the following problem. There areI two arrays somewere in the
> program:
> double weights [MAX_SIZE];
> ...
> int values [MAX_SIZE];
> ...
> I need to be able to send a single pair { weights [i], values [i] } with a
> single MPI_Send call Or receive it directly into both arrays at at given
> index i. How can I define a datatype that spans this pair over both arrays?

Did you have a look at topics like - MPI derived data types, MPI packing?
May be they can help.


Amit Kumar Saha
*NetBeans Community Docs
Contribution Coordinator*
me blogs@