Brock, Matt; thank you both. That has solved my problem.
Matt, Thank you for pointing that out, i was starting to get a little confused.
I have now replaced them with their respective alternatives:
MPI::COMM_WORLD.Get_Rank() and MPI::COMM_WORLD.Get_Size().
Regards,
Kevin Joy
__
2008/12/9 Kevin Anthony Joy :
> if (rank==0) { /// REMOVE THIS IF
> MPI::COMM_WORLD.Scatter(
> stat,
> 1,
> MPI::DOUBLE,
> &test3,
> 1,
> MPI::DOUBLE,
> 0);
> }
Hi Kevin. I see you are mixing C and C++ calls. It is probably bes
Scatter is a collective operation.
You need to have all ranks in COMM_WORLD call it. Even though rank 0
is the one with the original data.
Remove the if(rank==0) block around it,
Brock Palen
www.umich.edu/~brockp
Center for Advanced Computing
bro...@umich.edu
(734)936-1985
On Dec 9, 2008,
Good Evening All,
I'm very new to using MPI; I seem to be struggling to get a basic understanding
of the MPI::Comm_World.Scatter Operation, It seem's as though a may be
misunderstanding how the scatter operation works. Suppose i have an Array of x
amount of doubles, let's say 3 doubles that i