Commit e6244ffc authored by kraus's avatar kraus

give testers of UUID hashes a choice whether they want to use old hash

method.
parent fd28d632
......@@ -100,5 +100,5 @@ namespace Options {
bool memoryDump = false;
bool useUUID = false;
bool useUUID = true;
}
\ No newline at end of file
......@@ -94,12 +94,12 @@ OpalSimulation::OpalSimulation(Expressions::Named_t objectives,
// hash the dictionary to get a short unique directory name for temporary
// simulation data
std::string hash = UUIDNameGenerator::generate(dict);
// if (Options::useUUID) {
// hash = UUIDNameGenerator::generate(dict);
// } else {
// hash = HashNameGenerator::generate(dict);
// }
std::string hash;
if (Options::useUUID) {
hash = UUIDNameGenerator::generate(dict);
} else {
hash = HashNameGenerator::generate(dict);
}
std::ostringstream tmp;
tmp.precision(15);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment