mirror of https://github.com/CGAL/cgal
Also give a default initialization for the random seed + fix typo
This commit is contained in:
parent
91ab7000b0
commit
792ea89790
|
|
@ -264,7 +264,7 @@ void run_program_instance(po::variables_map& vm)
|
||||||
|
|
||||||
if (vm.count("randomseed"))
|
if (vm.count("randomseed"))
|
||||||
{
|
{
|
||||||
programInstance.randomizer = new CGAL::Random(vm["randomSeed"].as<unsigned int>());
|
programInstance.randomizer = new CGAL::Random(vm["randomseed"].as<unsigned int>());
|
||||||
}
|
}
|
||||||
|
|
||||||
programInstance.debugMode = vm["debugmode"].as<bool>();
|
programInstance.debugMode = vm["debugmode"].as<bool>();
|
||||||
|
|
@ -310,7 +310,7 @@ int main(int argc, char** argv)
|
||||||
("help,h", "Display help message")
|
("help,h", "Display help message")
|
||||||
("polyhedron,p", po::value<std::string>()->default_value("./data/test_mesh_6.off"), "Polyhedron input file")
|
("polyhedron,p", po::value<std::string>()->default_value("./data/test_mesh_6.off"), "Polyhedron input file")
|
||||||
("debugmode,d", po::value<bool>()->default_value(false), "Enable debug output")
|
("debugmode,d", po::value<bool>()->default_value(false), "Enable debug output")
|
||||||
("randomseed,r", po::value<unsigned int>(), "Randomization seed value")
|
("randomseed,r", po::value<unsigned int>()->default_value(0), "Randomization seed value")
|
||||||
("trials,t", po::value<size_t>()->default_value(1), "Number of trials to run")
|
("trials,t", po::value<size_t>()->default_value(1), "Number of trials to run")
|
||||||
("kernel,k", po::value<std::string>()->default_value("epick"), "Kernel to use. One of \'ipick\', \'epick\', \'epeck\'")
|
("kernel,k", po::value<std::string>()->default_value("epick"), "Kernel to use. One of \'ipick\', \'epick\', \'epeck\'")
|
||||||
;
|
;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue