Commit ab89856
Fix s_write_intf_data_file using wrong loop index for distance check
euc_d was computed outside the inner loop using the outer variable i
(stale from a previous loop) instead of the current stored-point
index. Moved distance computation inside the do-loop over stored
points and changed cycle to exit for correct early termination when
a candidate point is too close to any existing point.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 1782b1a commit ab89856
1 file changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1542 | 1542 | | |
1543 | 1543 | | |
1544 | 1544 | | |
1545 | | - | |
1546 | | - | |
1547 | 1545 | | |
1548 | | - | |
1549 | 1546 | | |
1550 | 1547 | | |
| 1548 | + | |
1551 | 1549 | | |
1552 | | - | |
1553 | | - | |
| 1550 | + | |
| 1551 | + | |
1554 | 1552 | | |
1555 | 1553 | | |
1556 | 1554 | | |
1557 | | - | |
1558 | 1555 | | |
1559 | 1556 | | |
1560 | 1557 | | |
| |||
0 commit comments