diff --git a/build/ag_gen b/build/ag_gen index 251afbf..9df45c9 100755 Binary files a/build/ag_gen and b/build/ag_gen differ diff --git a/src/mpi/tasks.cpp b/src/mpi/tasks.cpp index 425eb69..3a98e37 100644 --- a/src/mpi/tasks.cpp +++ b/src/mpi/tasks.cpp @@ -148,7 +148,7 @@ void task_one(AGGenInstance &instance, NetworkState ¤t_state,\ skip_greatest = 1; if(world.rank() <= alloc - skip_greatest){ world.isend(send_check(world, world.rank() + alloc -1), 30, appl_exploits); - world.isend(send_check(world, world.rank() + alloc -1), 0, current_state); + world.isend(send_check(world, world.rank() + alloc -1), 40, current_state); } } @@ -162,7 +162,7 @@ void task_two(AGGenInstance &instance, int alloc, int two_alloc, boost::mpi::com std::vector> appl_exploits; world.recv(mpi::any_source, 30, appl_exploits); - world.recv(mpi::any_source, 0, current_state); + world.recv(mpi::any_source, 40, current_state); std::cout << "Node " << world.rank() << " received Task 1 data." << std::endl; @@ -317,8 +317,10 @@ void task_two(AGGenInstance &instance, int alloc, int two_alloc, boost::mpi::com auto hash_num = new_state.get_hash(instance.facts); - if (hash_num == current_hash) + if (hash_num == current_hash){ + std::cout << "Same hash." << std::endl; continue; + } //<6 Node Edge Case Prevention: Node 0 unable to execute task 3 if(world.rank() != 0){