Debugging statements

This commit is contained in:
Noah L. Schrick 2022-01-29 16:23:20 -06:00
parent a91df99f4a
commit 8e7977ba17
2 changed files with 3 additions and 0 deletions

Binary file not shown.

View File

@ -164,6 +164,8 @@ void task_two(AGGenInstance &instance, int alloc, int two_alloc, boost::mpi::com
world.recv(mpi::any_source, 30, appl_exploits);
world.recv(mpi::any_source, 0, current_state);
std::cout << "Node " << world.rank() << " received Task 1 data." << std::endl;
std::vector<std::tuple<Exploit, AssetGroup>> partial_appl_exploits;
if(ttwo_comm.size() > 1)
mpi::scatter(ttwo_comm, &partial_appl_exploits, appl_exploits, 0);
@ -320,6 +322,7 @@ void task_two(AGGenInstance &instance, int alloc, int two_alloc, boost::mpi::com
//<6 Node Edge Case Prevention: Node 0 unable to execute task 3
if(world.rank() != 0){
std::cout << "Node " << world.rank() << " sending new state data to Node 0" << std::endl;
world.isend(0, 5, new_state);
world.isend(0, 6, current_state);
world.isend(0, 10, exploit);