Commit 98d63493 authored by VAN TOLL Wouter's avatar VAN TOLL Wouter

UMANS-ConsoleApplication now correctly uses the "number of threads" parameter.

parent 462742a6
...@@ -103,6 +103,7 @@ int main( int argc, char * argv[] ) ...@@ -103,6 +103,7 @@ int main( int argc, char * argv[] )
CrowdSimulator* cs = CrowdSimulator::FromConfigFile(configFile, true); CrowdSimulator* cs = CrowdSimulator::FromConfigFile(configFile, true);
if (cs != nullptr) if (cs != nullptr)
{ {
cs->GetWorld()->SetNumberOfThreads(nrThreads);
if (outputFolder != "") if (outputFolder != "")
cs->StartCSVOutput(outputFolder, false); // false = don't save any files until the simulation ends cs->StartCSVOutput(outputFolder, false); // false = don't save any files until the simulation ends
cs->RunSimulationUntilEnd(); cs->RunSimulationUntilEnd();
......
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