forked from UTulsa-Research/ag_gen
Debugging statements
This commit is contained in:
parent
a91df99f4a
commit
8e7977ba17
BIN
build/ag_gen
BIN
build/ag_gen
Binary file not shown.
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user