Thanks, it turns out, this was caused by an error earlier in the code,
resolved on StackOverflow
http://stackoverflow.com/questions/13290608/mpi-err-truncate-on-broadcast
On Fri, Nov 9, 2012 at 9:20 PM, Jeff Squyres wrote:
> Offhand, your code looks fine.
>
> Can you send a small, self-containe
Offhand, your code looks fine.
Can you send a small, self-contained example?
On Nov 8, 2012, at 9:42 AM, Lim Jiew Meng wrote:
> I have an int I intend to broadcast from root (rank==(FIELD=0)).
>
> int
> winner
>
>
> if (rank == FIELD) {
>
> winner
> = something;
> }
>
>
> MPI_Barrie
I have an int I intend to broadcast from root (rank==(FIELD=0)).
int winner
if (rank == FIELD) {
winner = something;}
MPI_Barrier(MPI_COMM_WORLD);
MPI_Bcast(&winner, 1, MPI_INT, FIELD, MPI_COMM_WORLD);
MPI_Barrier(MPI_COMM_WORLD);if (rank != FIELD) {
cout << rank << " informed that winner