Ok, when space for the vector is allocated it works.
I have one more question, is it possible to call gather with different count values for master and worker processes?

On Tue, Mar 9, 2010 at 10:16 PM, K. Noel Belcourt <kbelco@sandia.gov> wrote:
Hi Alev,

On Mar 9, 2010, at 10:43 AM, alev mutlu wrote:

I am trying to scatter some values to workers and then gather them. But I get strange error in gather step.
Any suggestions?

Ensure your program runs correctly in serial before trying to run it in parallel.

It looks like you never allocate array aa so the gather will fail.

-- Noel


_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users