Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
JPScore
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
92
Issues
92
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
JuPedSim
JPScore
Commits
1f2e2c84
Commit
1f2e2c84
authored
Aug 04, 2016
by
Mohcine Chraibi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deactivate Progressbar if sources
parent
58da6bdd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Simulation.cpp
Simulation.cpp
+3
-2
Simulation.h
Simulation.h
+1
-0
No files found.
Simulation.cpp
View file @
1f2e2c84
...
...
@@ -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 pedestrians
g
//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);
...
...
Simulation.h
View file @
1f2e2c84
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment