Program Listing for File symbulation_pgg.cc¶
↰ Return to documentation for file (source/native/symbulation_pgg.cc
)
#include "../pgg_mode/PGGWorld.h"
#include "../pgg_mode/PGGWorldSetup.cc"
#include "../default_mode/WorldSetup.cc"
#include "symbulation.h"
// This is the main function for the NATIVE version of this project.
int symbulation_main(int argc, char * argv[])
{
SymConfigBase config;
CheckConfigFile(config, argc, argv);
config.Write(std::cout);
emp::Random random(config.SEED());
PGGWorld world(random, &config);
world.Setup();
world.CreateDataFiles();
world.RunExperiment();
return 0;
}
/*
This definition guard prevents main from being defined twice during testing.
In testing, Catch will define a main function which will initiate tests
(including testing the symbulation_main function above).
*/
#ifndef CATCH_CONFIG_MAIN
int main(int argc, char * argv[]) {
return symbulation_main(argc, argv);
}
#endif