Closed warrickball closed 3 years ago
Nice sleuthing!
For the first FPE I'm going to copy-paste helm_electron_positron.dek
into compute_ideal_ele
and remove the offending line. HELM does actually use xne
so we can't just comment it out uniformly, and I think it's better to have these actually diverge rather than having Skye continue pretending to be HELM.
The second FPE was an error in the problem line: it should be resolved by setting j -> found_index
.
The fixes were simple enough that I've just pushed them to main, so I'm closing this issue. Feel free to reopen if you think it isn't addressed.
I've got two FPEs in
wd_cool_0.6M
that are bubbling up from Skye. The top of the initial backtrace points to the first issue:The offending subroutine is
and line 3 of
helm_electron_positron.dek
iszbar
is an argument to the subroutine butxni
hasn't been set. But nothing ever seems to usexne
, so I commented out that line......which got me to the next FPE:
where the offending line of code is in
charge_abundances
is never initialised, so I think the FPE comes from adding something to the uninitialised data. Just looking at this loop, there are several possibilities of what the logic should be. I can compile MESA and runwd_cool_0.6M
by addingcharge_abundances = 0
before the loop but that might not be the intended behaviour. Another possibility is that the loop overj
shouldexit
when it finds the matching index, or thatcharge_abundances(j)
should becharge_abundances(found_index)
.