Commit eb9ec252 authored by Mohcine Chraibi's avatar Mohcine Chraibi

Add some output for sources

parent f82926fe
...@@ -51,6 +51,8 @@ bool GeoFileParser::LoadGeometry(Building* building) ...@@ -51,6 +51,8 @@ bool GeoFileParser::LoadGeometry(Building* building)
{ {
std::string geoFilenameWithPath = _configuration->GetProjectRootDir()+_configuration->GetGeometryFile(); std::string geoFilenameWithPath = _configuration->GetProjectRootDir()+_configuration->GetGeometryFile();
std::cout << "LodGeometry: file: " << geoFilenameWithPath << "\n";
TiXmlDocument docGeo(geoFilenameWithPath); TiXmlDocument docGeo(geoFilenameWithPath);
if (!docGeo.LoadFile()) { if (!docGeo.LoadFile()) {
Log->Write("ERROR: \t%s", docGeo.ErrorDesc()); Log->Write("ERROR: \t%s", docGeo.ErrorDesc());
...@@ -505,14 +507,3 @@ GeoFileParser::~GeoFileParser() ...@@ -505,14 +507,3 @@ GeoFileParser::~GeoFileParser()
{ {
} }
...@@ -222,9 +222,11 @@ bool Simulation::InitArgs() ...@@ -222,9 +222,11 @@ bool Simulation::InitArgs()
_agentSrcManager.SetBuilding(_building.get()); _agentSrcManager.SetBuilding(_building.get());
_agentSrcManager.SetMaxSimTime(GetMaxSimTime()); _agentSrcManager.SetMaxSimTime(GetMaxSimTime());
_gotSources = (bool) distributor->GetAgentsSources().size(); // did we have any sources? false if no sources _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()) { for (const auto& src: distributor->GetAgentsSources()) {
_agentSrcManager.AddSource(src); _agentSrcManager.AddSource(src);
//src->Dump(); src->Dump();
} }
......
...@@ -123,6 +123,8 @@ bool AgentsSourcesManager::ProcessAllSources() const ...@@ -123,6 +123,8 @@ bool AgentsSourcesManager::ProcessAllSources() const
source_peds.reserve(source_peds.size() + peds.size()); source_peds.reserve(source_peds.size() + peds.size());
Log->Write("> INFO:\tSource %d generating %d agents (%d remaining)\n",src->GetId(),peds.size(),src->GetPoolSize()); Log->Write("> INFO:\tSource %d generating %d agents (%d remaining)\n",src->GetId(),peds.size(),src->GetPoolSize());
printf("INFO:\tSource %d generating %d agents (%d remaining)\n",src->GetId(), peds.size(),src->GetPoolSize());
//ComputeBestPositionRandom(src.get(), peds); //ComputeBestPositionRandom(src.get(), peds);
//todo: here every pedestrian needs an exitline //todo: here every pedestrian needs an exitline
......
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