Serialize adjustments

This commit is contained in:
Noah L. Schrick 2021-12-11 23:56:13 -06:00
parent abe8ea778a
commit 600acade77
2 changed files with 5 additions and 1 deletions

Binary file not shown.

View File

@ -2,6 +2,7 @@
#include <fstream>
#include <vector>
#include <string>
#include <unistd.h>
#include "../ag_gen/asset.h"
#include "../ag_gen/assetgroup.h"
@ -178,6 +179,9 @@ int network_state_check(NetworkState &ns1, NetworkState &ns2){
void serialization_unit_testing(AGGenInstance &instance, boost::mpi::communicator &world){
char hammer_host[256];
gethostname(hammer_host, 256);
if(world.rank() == 0){
printf("\n");
std::cout << "---------STARTING SERIALIZATION UNIT TESTING---------" << std::endl;
@ -185,7 +189,7 @@ void serialization_unit_testing(AGGenInstance &instance, boost::mpi::communicato
world.barrier();
std::cout << "\nHello from process " << world.rank() << " of " << world.size()
<< "." << std::endl;
<< "running on " << hammer_host << std::endl;
world.barrier();
std::string filename(boost::archive::tmpdir());