Commit a2dcea16 authored by Arne Graf's avatar Arne Graf

disabled debug vtk/Matrix

parent 5b205759
Pipeline #8269 failed with stages
in 13 seconds
......@@ -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;
}
......
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