Commit dbd1bbb
Guard THINC density ratio computation against divide-by-zero
When advxb approaches 0 or 1 at an interface, rho_b and rho_e
could divide by zero. Guard with sgm_eps (1e-16) using the same
pattern already used for C = (aC - qmin + sgm_eps)/(qmax + sgm_eps).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 1866dff commit dbd1bbb
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
284 | | - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
285 | 287 | | |
286 | 288 | | |
287 | 289 | | |
| |||
0 commit comments