Re: [OMPI users] Fwd: Problem with sending vectors

2008-04-12 Thread Andreas Schäfer
On 20:39 Fri 11 Apr , Jeff Squyres wrote: > Also, it's been a long time since I've done anything serious in C++, > but are you guaranteed that &foo[x] for a vector<> will yield > contiguous memory? Good question. I was used to believe so, but I just had a look at the standard and couldn't

Re: [OMPI users] Fwd: Problem with sending vectors

2008-04-11 Thread Jeff Squyres
Also, it's been a long time since I've done anything serious in C++, but are you guaranteed that &foo[x] for a vector<> will yield contiguous memory? You might be better off using the Boost C++ MPI bindings; they provide all kinds of nifty things for classes, etc. On Apr 7, 2008, at 7:47

Re: [OMPI users] Fwd: Problem with sending vectors

2008-04-07 Thread Andreas Schäfer
Hi Albert, On 10:13 Mon 07 Apr , Albert Babinskas wrote: > Some code for the error that i get: [snip] > class Box has two int array inside it like > int a[3]; > int b[3]; Sorry, but "has two int array inside it like" isn't very precise. Do you mean: class Box { int a[3]; int b[3]

[OMPI users] Fwd: Problem with sending vectors

2008-04-07 Thread Albert Babinskas
I want to send vectors of myclass between nodes. But myclass has arrays inside of it. So i defined Datatype mpi_arrays to define the arrays in myclass and then i defined another Datatype for vectors. When i send vectors between nodes i get this error: [localhost:31457] *** Process received signa