SWIFTSIM / HBTplus

HBTplus halo finder adapted for the FLAMINGO and COLIBRE simulations
0 stars 0 forks source link

Zero out internal energy for non-gas particles #33

Closed jchelly closed 2 months ago

jchelly commented 2 months ago

In Unbind() the internal energy of each particle is accumulated regardless of type, but the Swift I/O code leaves it uninitialized for non-gas particles. This shows up as "Conditional jump or move depends on uninitialised value(s)" errors in valgrind and presumably causes incorrect output.

This PR sets the internal energy to zero for non-gas particles.