Commit c7ffcdb
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 3781b98 commit c7ffcdb
1 file changed
+3
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1546 | 1546 | | |
1547 | 1547 | | |
1548 | 1548 | | |
1549 | | - | |
1550 | | - | |
1551 | 1549 | | |
1552 | | - | |
1553 | 1550 | | |
1554 | 1551 | | |
| 1552 | + | |
1555 | 1553 | | |
1556 | | - | |
1557 | | - | |
| 1554 | + | |
| 1555 | + | |
1558 | 1556 | | |
1559 | 1557 | | |
1560 | 1558 | | |
1561 | | - | |
1562 | 1559 | | |
1563 | 1560 | | |
1564 | 1561 | | |
| |||
0 commit comments