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
eb9ec252
Commit
eb9ec252
authored
Jul 29, 2018
by
Mohcine Chraibi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some output for sources
parent
f82926fe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
12 deletions
+7
-12
IO/GeoFileParser.cpp
IO/GeoFileParser.cpp
+2
-11
Simulation.cpp
Simulation.cpp
+3
-1
pedestrian/AgentsSourcesManager.cpp
pedestrian/AgentsSourcesManager.cpp
+2
-0
No files found.
IO/GeoFileParser.cpp
View file @
eb9ec252
...
...
@@ -51,6 +51,8 @@ bool GeoFileParser::LoadGeometry(Building* building)
{
std
::
string
geoFilenameWithPath
=
_configuration
->
GetProjectRootDir
()
+
_configuration
->
GetGeometryFile
();
std
::
cout
<<
"LodGeometry: file: "
<<
geoFilenameWithPath
<<
"
\n
"
;
TiXmlDocument
docGeo
(
geoFilenameWithPath
);
if
(
!
docGeo
.
LoadFile
())
{
Log
->
Write
(
"ERROR:
\t
%s"
,
docGeo
.
ErrorDesc
());
...
...
@@ -505,14 +507,3 @@ GeoFileParser::~GeoFileParser()
{
}
Simulation.cpp
View file @
eb9ec252
...
...
@@ -222,9 +222,11 @@ bool Simulation::InitArgs()
_agentSrcManager
.
SetBuilding
(
_building
.
get
());
_agentSrcManager
.
SetMaxSimTime
(
GetMaxSimTime
());
_gotSources
=
(
bool
)
distributor
->
GetAgentsSources
().
size
();
// did we have any sources? false if no sources
std
::
cout
<<
" Got sources: "
<<
_gotSources
;
for
(
const
auto
&
src
:
distributor
->
GetAgentsSources
())
{
_agentSrcManager
.
AddSource
(
src
);
//
src->Dump();
src
->
Dump
();
}
...
...
pedestrian/AgentsSourcesManager.cpp
View file @
eb9ec252
...
...
@@ -123,6 +123,8 @@ bool AgentsSourcesManager::ProcessAllSources() const
source_peds
.
reserve
(
source_peds
.
size
()
+
peds
.
size
());
Log
->
Write
(
"> INFO:
\t
Source %d generating %d agents (%d remaining)
\n
"
,
src
->
GetId
(),
peds
.
size
(),
src
->
GetPoolSize
());
printf
(
"INFO:
\t
Source %d generating %d agents (%d remaining)
\n
"
,
src
->
GetId
(),
peds
.
size
(),
src
->
GetPoolSize
());
//ComputeBestPositionRandom(src.get(), peds);
//todo: here every pedestrian needs an exitline
...
...
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