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.
On 14:14 Sun 06 Apr , Albert Babinskas wrote:
> I want to send vectors of myclass between nodes. But myclass has
> arrays inside of it.
Without knowing your code I can only guess the problem, but I have two
hypotheses: a) If those arrays are dynamically allocated via "new",
then you cannot send multiple objects using the same MPI datatype as
the offset of the array content to the containing object will vary
between multiple instances. b) A frequent error when using vectors is
the assumption that the address of the first element can be obtained
by "&vector" (works almost never) or "&vector.begin()" (works for some
implementations). The correct method would be "&vector" or
You could get more detailed feedback if you would attach a minimal
excerpt of your code that reproduces the error (and still constitutes
a valid/complete MPI program).
Cluster and Metacomputing Working Group
Friedrich-Schiller-Universität Jena, Germany
PGP/GPG key via keyserver
I'm a bright... http://www.the-brights.net
This is Bunny. Copy and paste Bunny into your
signature to help him gain world domination!
- application/pgp-signature attachment: stored