Increase the "reserve" length when moving up long wires (ARM run-17).

* New: In Katana::Manipulator::moveUp(), if the length of the wire is
    greater than 60 pitchs, increase the reserve from 0.5 track to
    1.0 track. This is to left more free tracks when lots of very
    long segments are moved up. Make the run 17 of the ARM test bench
    pass.
This commit is contained in:
Jean-Paul Chaput 2020-08-06 15:04:18 +02:00
parent 748289ad7e
commit 140d6f20dc
1 changed files with 1 additions and 0 deletions

View File

@ -1183,6 +1183,7 @@ namespace Katana {
//float reserve = 1.0;
float reserve = 0.5;
if (_segment->base() and (_segment->base()->getRpDistance() > 2)) reserve = 1.0;
if (_segment->getLength() > 60*getPitch()) reserve = 1.0;
if (_segment->isFixed()) return false;
if (not (flags & AllowLocalMoveUp)) {