Commit 925cd7d
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 1136e3d commit 925cd7d
1 file changed
+3
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1548 | 1548 | | |
1549 | 1549 | | |
1550 | 1550 | | |
1551 | | - | |
1552 | | - | |
1553 | 1551 | | |
1554 | | - | |
1555 | 1552 | | |
1556 | 1553 | | |
| 1554 | + | |
1557 | 1555 | | |
1558 | | - | |
1559 | | - | |
| 1556 | + | |
| 1557 | + | |
1560 | 1558 | | |
1561 | 1559 | | |
1562 | 1560 | | |
1563 | | - | |
1564 | 1561 | | |
1565 | 1562 | | |
1566 | 1563 | | |
| |||
0 commit comments