Skip to content
Snippets Groups Projects
Commit 70b4a509 authored by Paul Heinzlreiter's avatar Paul Heinzlreiter
Browse files

* testing

parent 63b01760
Branches
No related merge requests found
......@@ -157,7 +157,12 @@ namespace nbody {
btype = btype.Create_struct(3, this->blocklengths, this->displacements, this->datatypes);
btype.Commit();
MPI::COMM_WORLD.Bcast(MPI::BOTTOM, bodySize, btype, 0);
//MPI::COMM_WORLD.Bcast(MPI::BOTTOM, bodySize, btype, 0);
if (myRank == 0) {
MPI::COMM_WORLD.Send(MPI::BOTTOM, bodySize, btype, 1, 0);
} else if (myRank == 1) {
MPI::COMM_WORLD.Recv(MPI::BOTTOM, bodySize, btype, 0, 0);
}
btype.Free();
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment