aboutsummaryrefslogtreecommitdiffstats
path: root/common/place_sa.cc
diff options
context:
space:
mode:
Diffstat (limited to 'common/place_sa.cc')
-rw-r--r--common/place_sa.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/common/place_sa.cc b/common/place_sa.cc
index 2f8fb122..591766aa 100644
--- a/common/place_sa.cc
+++ b/common/place_sa.cc
@@ -77,6 +77,8 @@ class SAPlacer
bool place()
{
+ log_break();
+
size_t placed_cells = 0;
// Initial constraints placer
for (auto cell_entry : ctx->cells) {
@@ -408,9 +410,9 @@ class SAPlacer
delta = new_wirelength - curr_wirelength;
n_move++;
// SA acceptance criterea
- if (delta < 0 ||
- (temp > 1e-6 && (ctx->rng() / float(0x3fffffff)) <=
- std::exp(-(delta / 2) / temp))) {
+ if (delta < 0 || (temp > 1e-6 &&
+ (ctx->rng() / float(0x3fffffff)) <=
+ std::exp(-(delta / 2) / temp))) {
n_accept++;
if (delta < 2)
improved = true;