diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/place_sa.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/place_sa.cc b/common/place_sa.cc index 3162d88c..55ec9b9a 100644 --- a/common/place_sa.cc +++ b/common/place_sa.cc @@ -374,8 +374,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 / temp))) { + if (delta < 0 || + (temp > 1e-6 && + (ctx->rng() / float(0x3fffffff)) <= std::exp(-delta / temp))) { n_accept++; if (delta < 0) improved = true; |