Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drt: decoupling of the Graphics classes and stable drt_lib #6550

Merged
merged 12 commits into from
Jan 28, 2025
11 changes: 4 additions & 7 deletions src/drt/src/dr/FlexDR.cpp
Original file line number Diff line number Diff line change
@@ -1434,8 +1434,7 @@ void FlexDR::end(bool done)
<< (double) ((sCut[i] + mCut[i])
? mCut[i] * 100.0 / (sCut[i] + mCut[i])
: 0.0)
<< "%)"
<< " "
<< "%) "
<< std::setw((int) std::to_string(totSCut + totMCut).length())
<< sCut[i] + mCut[i];
}
@@ -1446,9 +1445,8 @@ void FlexDR::end(bool done)
msg << "-";
}
msg << std::endl;
msg << " " << std::setw(nameLen) << ""
<< " " << std::setw((int) std::to_string(totSCut).length())
<< totSCut;
msg << " " << std::setw(nameLen) << " "
<< std::setw((int) std::to_string(totSCut).length()) << totSCut;
if (totMCut) {
msg << " (" << std::setw(5)
<< (double) ((totSCut + totMCut)
@@ -1460,8 +1458,7 @@ void FlexDR::end(bool done)
<< (double) ((totSCut + totMCut)
? totMCut * 100.0 / (totSCut + totMCut)
: 0.0)
<< "%)"
<< " "
<< "%) "
<< std::setw((int) std::to_string(totSCut + totMCut).length())
<< totSCut + totMCut;
}
6 changes: 2 additions & 4 deletions src/drt/src/dr/FlexDR_conn.cpp
Original file line number Diff line number Diff line change
@@ -819,14 +819,12 @@ void FlexDRConnectivityChecker::handleOverlaps_perform(
if (isHorz) {
segSpans.push_back({{bp.x(), ep.x()}, idx});
if (bp.x() >= ep.x()) {
std::cout << "Error1: bp.x() >= ep.x()" << bp << " "
<< " " << ep << "\n";
std::cout << "Error1: bp.x() >= ep.x()" << bp << " " << ep << "\n";
}
} else {
segSpans.push_back({{bp.y(), ep.y()}, idx});
if (bp.y() >= ep.y()) {
std::cout << "Error2: bp.y() >= ep.y()" << bp << " "
<< " " << ep << "\n";
std::cout << "Error2: bp.y() >= ep.y()" << bp << " " << ep << "\n";
}
}
}