Commit 9e55b84f authored by Arne Graf's avatar Arne Graf

cleaned up dbg output (ffrouter)

parent 6b207cb9
Pipeline #8429 canceled with stages
in 13 seconds
......@@ -121,7 +121,7 @@ UnivFFviaFM::UnivFFviaFM(Room* roomArg, Configuration* const confArg, double hx,
Log->Write("ERROR:\t In UnivFF InsidePoint Analysis");
bool a = subRoomPtr->IsInSubRoom(candidate01);
bool b = subRoomPtr->IsInSubRoom(candidate02);
a = b && a;
a = b && a; //ignore this line. only to have a codeline after initialization of bools (to place a breakpoint)
}
}
//_subroomUIDtoSubRoomPtr.emplace(std::make_pair(subRoomPtr->GetUID(), subRoomPtr));
......
......@@ -265,15 +265,15 @@ 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;
}
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;
// }
// matrixfile.close();
Log->Write("INFO: \tFF Router Init done.");
return true;
}
......@@ -520,10 +520,10 @@ void FFRouter::FloydWarshall()
}
}
if (change) {
Log->Write("Floyd nochmal!!! %f", savedDistance);
//Log->Write("Floyd nochmal!!! %f", savedDistance);
FloydWarshall();
} else {
Log->Write("Floyd fertig");
Log->Write("INFO:\t FloydWarshall done!");
}
}
......
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