Updating serialize send

This commit is contained in:
Noah L. Schrick 2021-12-12 00:50:15 -06:00
parent 600acade77
commit 27253c6e89
2 changed files with 17 additions and 3 deletions

Binary file not shown.

View File

@ -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;