diff --git a/src/main.cpp b/src/main.cpp index ea0c547..00d49ca 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -659,12 +659,13 @@ int main(int argc, char *argv[]) { std::cout << "Generating Attack Graph: " << std::flush; AGGen gen(_instance);//use AGGen class to instantiate an obj with the name gen! _instance obj as the parameter! constructor defined in ag_gen.cpp - postinstance = gen.generate(batch_process, batch_size, thread_count, init_qsize, alpha, world); //The method call to generate the attack graph, defined in ag_gen.cpp. + if(world.rank() == 0) + postinstance = gen.generate(batch_process, batch_size, thread_count, init_qsize, alpha, world); //The method call to generate the attack graph, defined in ag_gen.cpp. world.barrier(); //Serialization Unit Testing on Postinstance Data - serialization_unit_testing(postinstance, world); - world.barrier(); + //serialization_unit_testing(postinstance, world); + //world.barrier(); std::cout << "Done\n"; //std::cout << "# of edges " <