Commit b670d8e
committed
Fix self-attenuating RelAct calculations as AD goes to zero.
Previous niave implementation would result in a inf for AD equal to zero, and probably bad values of derivative as it approached; replaced with more well-behaved approach if mu*ad is below a threshold.
Also fixup some debug checks.1 parent 8f92c46 commit b670d8e
File tree
4 files changed
+28
-9
lines changed- InterSpec
- src
4 files changed
+28
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
377 | | - | |
| 377 | + | |
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
257 | | - | |
258 | | - | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
259 | 276 | | |
260 | 277 | | |
261 | 278 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6412 | 6412 | | |
6413 | 6413 | | |
6414 | 6414 | | |
6415 | | - | |
| 6415 | + | |
6416 | 6416 | | |
6417 | | - | |
6418 | | - | |
| 6417 | + | |
6419 | 6418 | | |
6420 | 6419 | | |
6421 | 6420 | | |
6422 | 6421 | | |
6423 | 6422 | | |
6424 | 6423 | | |
6425 | | - | |
| 6424 | + | |
6426 | 6425 | | |
6427 | 6426 | | |
6428 | 6427 | | |
| |||
6852 | 6851 | | |
6853 | 6852 | | |
6854 | 6853 | | |
6855 | | - | |
| 6854 | + | |
6856 | 6855 | | |
6857 | 6856 | | |
6858 | 6857 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1324 | 1324 | | |
1325 | 1325 | | |
1326 | 1326 | | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
1327 | 1330 | | |
1328 | 1331 | | |
1329 | 1332 | | |
| |||
0 commit comments