Skip to content

Commit

Permalink
mpl2: address clang-tidy
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Koucher <arthurckoucher@gmail.com>
  • Loading branch information
AcKoucher committed Apr 5, 2024
1 parent 6a0188c commit 4527438
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mpl2/src/SimulatedAnnealingCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,8 @@ void SimulatedAnnealingCore<T>::attemptCentralization(const float pre_cost)
// of the clusters to avoid floating-point evilness when creating the
// x,y grid to fill the dead space by expanding mixed clusters.
std::vector<std::pair<float, float>> clusters_locations;
clusters_locations.reserve(pos_seq_.size());

for (int& id : pos_seq_) {
clusters_locations.emplace_back(macros_[id].getX(), macros_[id].getY());
}
Expand Down

0 comments on commit 4527438

Please sign in to comment.