diff --git a/build/ag_gen b/build/ag_gen index 54814ad..66de6b6 100755 Binary files a/build/ag_gen and b/build/ag_gen differ diff --git a/src/mpi/serialize.cpp b/src/mpi/serialize.cpp index 51bd700..2f45358 100644 --- a/src/mpi/serialize.cpp +++ b/src/mpi/serialize.cpp @@ -181,6 +181,7 @@ void serialization_unit_testing(AGGenInstance &instance, boost::mpi::communicato char hammer_host[256]; gethostname(hammer_host, 256); + std::string str_host(hammer_host); if(world.rank() == 0){ printf("\n"); @@ -188,8 +189,21 @@ void serialization_unit_testing(AGGenInstance &instance, boost::mpi::communicato } world.barrier(); - std::cout << "\nHello from process " << world.rank() << " of " << world.size() - << "running on " << hammer_host << std::endl; + //std::cout << "\nHello from process " << world.rank() << " of " << world.size() + // << " running on " << hammer_host << "." << std::endl; + std::string rollcall = "\nHello from process " + std::to_string(world.rank())\ + + " of " + std::to_string(world.size()) + " running on "\ + + str_host + "."; + + if(world.rank() != 0) + world.send(0, 0, rollcall); + else{ + for(int i = 0; i < world.size()-1; i++){ + world.recv(mpi::any_source, 0, str_host); + std::cout << str_host << std::endl; + } + } + std::cout << "" << std::endl; world.barrier(); std::string filename(boost::archive::tmpdir()); @@ -353,7 +367,7 @@ void serialization_unit_testing(AGGenInstance &instance, boost::mpi::communicato e_flag = 1; } - + std::cout << "" << std::endl; if(e_flag == 1) std::cout << "-------------ERRORS OCCURRED DURING SERIALIZATION UNIT TESTING---------------" << std::endl; std::cout << "---------FINISHED SERIALIZATION UNIT TESTING---------" << std::endl;