Skip to content

Bug in iact_self_direct()

The code in the master branch incorrectly erases the previously accumulated accelerations of the particles.

The fix is to replace the final "=" by a "+=" when local particles are copied to the main array.

A fix is present in commit c40c0b5a of the "unbiased_gravity" branch.