From a2dcea160c563e5d844e4325fe9dfff4c4531822 Mon Sep 17 00:00:00 2001 From: Arne Graf <ar.graf.cst@gmail.com> Date: Thu, 29 Mar 2018 13:12:10 +0200 Subject: [PATCH] disabled debug vtk/Matrix --- routing/ff_router/ffRouter.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/routing/ff_router/ffRouter.cpp b/routing/ff_router/ffRouter.cpp index 87718d27..e32cd76b 100644 --- a/routing/ff_router/ffRouter.cpp +++ b/routing/ff_router/ffRouter.cpp @@ -322,21 +322,21 @@ bool FFRouter::Init(Building* building) } } - std::ofstream matrixfile; - matrixfile.open("Matrix.txt"); - - for (auto mapItem : _distMatrix) { - matrixfile << mapItem.first.first << " to " << mapItem.first.second << " : " << mapItem.second << "\t via \t" << _pathsMatrix[mapItem.first]; - matrixfile << "\t" << _CroTrByUID.at(mapItem.first.first)->GetID() << " to " << _CroTrByUID.at(mapItem.first.second)->GetID() << "\t via \t"; - matrixfile << _CroTrByUID.at(_pathsMatrix[mapItem.first])->GetID() << std::endl; -// auto sub = _subroomMatrix.at(mapItem.first); -// if (sub) { -// matrixfile << std::string("\tSubroom: UID ") << sub->GetUID() << " (room: " << sub->GetRoomID() << " subroom ID: " << sub->GetSubRoomID() << ")" << std::endl; -// } else { -// matrixfile << std::string("\tSubroom is nullptr") << std::endl; -// } - } - matrixfile.close(); +// std::ofstream matrixfile; +// matrixfile.open("Matrix.txt"); +// +// for (auto mapItem : _distMatrix) { +// matrixfile << mapItem.first.first << " to " << mapItem.first.second << " : " << mapItem.second << "\t via \t" << _pathsMatrix[mapItem.first]; +// matrixfile << "\t" << _CroTrByUID.at(mapItem.first.first)->GetID() << " to " << _CroTrByUID.at(mapItem.first.second)->GetID() << "\t via \t"; +// matrixfile << _CroTrByUID.at(_pathsMatrix[mapItem.first])->GetID() << std::endl; +//// auto sub = _subroomMatrix.at(mapItem.first); +//// if (sub) { +//// matrixfile << std::string("\tSubroom: UID ") << sub->GetUID() << " (room: " << sub->GetRoomID() << " subroom ID: " << sub->GetSubRoomID() << ")" << std::endl; +//// } else { +//// matrixfile << std::string("\tSubroom is nullptr") << std::endl; +//// } +// } +// matrixfile.close(); Log->Write("INFO: \tFF Router Init done."); return true; } -- GitLab