From 4b5c500d21cfd266a53c8d67eb69619365ba6a39 Mon Sep 17 00:00:00 2001 From: noah Date: Sun, 30 Jan 2022 00:05:37 -0600 Subject: [PATCH] Just ignore all of these lol --- src/ag_gen/ag_gen.cpp | 2 +- src/mpi/tasks.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ag_gen/ag_gen.cpp b/src/ag_gen/ag_gen.cpp index ee75805..90206a6 100755 --- a/src/ag_gen/ag_gen.cpp +++ b/src/ag_gen/ag_gen.cpp @@ -384,7 +384,7 @@ AGGenInstance &AGGen::generate(bool batch_process, int batch_size, int numThrd, //Create Communicators boost::mpi::communicator tcomm = world.split(world.rank() > 0 && world.rank() <= alloc); - boost::mpi::communicator ttwo_comm = world.split(world.rank() == send_check(world, alloc) && world.rank() <= (2*two_alloc)); + boost::mpi::communicator ttwo_comm = world.split(world.rank() >= send_check(world, alloc) && world.rank() <= (2*two_alloc)); while (!localFrontier.empty() || !unex_empty() || world.rank() > 0){//while starts diff --git a/src/mpi/tasks.cpp b/src/mpi/tasks.cpp index 3a98e37..2f61881 100644 --- a/src/mpi/tasks.cpp +++ b/src/mpi/tasks.cpp @@ -156,7 +156,8 @@ void task_two(AGGenInstance &instance, int alloc, int two_alloc, boost::mpi::com std::deque &localFrontier, double mem_threshold, boost::mpi::communicator &ttwo_comm,\ std::vector ex_groups, std::unordered_map &hash_map){ - std::cout << "Process rank " << world.rank() << " with " << two_alloc << " node(s) allocated has started Task 2." << std::endl; + std::cout << "Process rank " << world.rank() << " with " << two_alloc <<\ + " node(s) allocated has started Task 2 with local communicator rank of " << ttwo_comm.rank() << std::endl; NetworkState current_state; std::vector> appl_exploits;