Placer: Fix static legalise radius (#1382)

This commit is contained in:
Meinhard Kissich 2024-10-08 15:20:33 +02:00 committed by GitHub
parent 0e5b1348e6
commit d27993f019
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1245,7 +1245,7 @@ class StaticPlacer
total_iters_noreset++;
if (total_iters > int(ccells.size())) {
total_iters = 0;
ripup_radius = std::max(std::max(width + 1, height + 1), ripup_radius * 2);
ripup_radius = std::min(std::max(width + 1, height + 1), ripup_radius * 2);
}
if (total_iters_noreset > std::max(5000, 8 * int(ctx->cells.size()))) {