Commit 1f2e2c84 authored by Mohcine Chraibi's avatar Mohcine Chraibi

Deactivate Progressbar if sources

parent 58da6bdd
......@@ -453,7 +453,7 @@ double Simulation::RunBody(double maxSimTime)
// main program loop
while ((_nPeds || (!_agentSrcManager.IsCompleted()&& _gotSources) ) && t<maxSimTime) {
t = 0+(frameNr-1)*_deltaT;
//process the queue for incoming pedestriansg
//process the queue for incoming pedestrians
ProcessAgentsQueue();
if (t>Pedestrian::GetMinPremovementTime()) {
......@@ -484,7 +484,8 @@ double Simulation::RunBody(double maxSimTime)
if (0==frameNr%writeInterval) {
_iod->WriteFrame(frameNr/writeInterval, _building.get());
}
Log->ProgressBar(initialnPeds, initialnPeds-_nPeds, t);
if(!_gotSources /*&& _printPB*/) // @todo: option for print progressbar
Log->ProgressBar(initialnPeds, initialnPeds-_nPeds, t);
// needed to control the execution time PART 2
// time(&endtime);
......
......@@ -89,6 +89,7 @@ private:
//HybridSimulationManager
int _periodic;
bool _gotSources; // is true if we got some sources. Otherwise, false.
// bool _printPB; // print progressbar
public:
/**
* Constructor
......
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