Skip to content

Commit

Permalink
Fix error in windowed LVX, generating open over the cut line.
Browse files Browse the repository at this point in the history
* In Tramontana::Sweepline::loadNextWindow(), the last left edge tile
    signaling that the window is fully processed was badly computed.
    It is the last "leftmost" tile which left edge is *still inside*
    the window which should be used.
  • Loading branch information
jpc-lip6 committed Dec 23, 2024
1 parent 5c7fdab commit a9c0aee
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tramontana/src/SweepLine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ namespace Tramontana {
void SweepLine::run ( bool isTopLevel )
{
UpdateSession::open();
// if (getCell()->getName() == "arlet6502_cts_r")
// if (getCell()->getName() == "a2_x2")
// DebugSession::open( 160, 169 );
cdebug_log(160,1) << "SweepLine::run()" << endl;
Box ab = getCell()->getBoundingBox();
Expand Down Expand Up @@ -204,7 +204,7 @@ namespace Tramontana {
mergeEquipotentials( Tile::MakeLeafEqui );
if (isTopLevel) printSummary();
Tile::deleteAllTiles();
// if (getCell()->getName() == "arlet6502_cts_r")
// if (getCell()->getName() == "a2_x2")
// DebugSession::close();
UpdateSession::close();
}
Expand Down Expand Up @@ -235,7 +235,8 @@ namespace Tramontana {
if (_tiles.size() > 1) {
size_t itile = _tiles.size();
while ( itile > 1 ) {
if (_tiles[--itile].isLeftEdge()) {
itile--;
if (_tiles[itile].isLeftEdge() and (_tiles[itile].getX() < _slidingWindow.getXMax())) {
_lastLeftEdge = _tiles[itile].getTile();
cdebug_log(160,0) << "_lastLeftEdge: " << _lastLeftEdge << endl;
break;
Expand Down

0 comments on commit a9c0aee

Please sign in to comment.