Skip to content

Commit 2cc7d05

Browse files
committed
gpl: rename numCall to revert_count_
Signed-off-by: Augusto Berndt <[email protected]>
1 parent 55bb291 commit 2cc7d05

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/gpl/src/nesterovPlace.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ bool NesterovPlace::isDiverged(float& diverge_snapshot_WlCoefX,
604604
// overflow.
605605
// // revert back to the original rb solutions
606606
// // one more opportunity
607-
// if (!isDivergeTriedRevert && rb_->numCall() >= 1) {
607+
// if (!isDivergeTriedRevert && rb_->getRevertCount() >= 1) {
608608
// // get back to the working rc size
609609
// rb_->revertGCellSizeToMinRc();
610610
// curA = route_snapshotA;

src/gpl/src/routeBase.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ std::vector<int64_t> RouteBase::inflatedAreaDelta() const
328328
return inflatedAreaDelta_;
329329
}
330330

331-
int RouteBase::numCall() const
331+
int RouteBase::getRevertCount() const
332332
{
333333
return revert_count_;
334334
}
@@ -833,8 +833,7 @@ void RouteBase::updateRudyAverage(bool verbose)
833833
}
834834

835835
int arraySize = edge_cong_array.size();
836-
std::ranges::sort(std::ranges::reverse_view(edge_cong_array),
837-
std::less<double>());
836+
std::ranges::sort(edge_cong_array, std::greater<double>());
838837

839838
double avg005RC = 0;
840839
double avg010RC = 0;

src/gpl/src/routeBase.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class RouteBase
172172
std::pair<bool, bool> routability(int routability_driven_revert_count);
173173

174174
std::vector<int64_t> inflatedAreaDelta() const;
175-
int numCall() const;
175+
int getRevertCount() const;
176176

177177
private:
178178
RouteBaseVars rbVars_;
@@ -207,7 +207,7 @@ class RouteBase
207207
void resetRoutabilityResources();
208208
void revertToMinCongestion();
209209

210-
// update numCall_
210+
// update revert_count_
211211
void increaseCounter();
212212

213213
// routability funcs

0 commit comments

Comments
 (0)