Skip to content

Planetary gravity fixes

Matthieu Schaller requested to merge planetary_gravity_fixes into master

Fixes #451 (closed).

Corrects two mistakes in the updated gravity calculation:

  • Only mark a top-level cell as having interacted with an other multipole in the long-range task if it actually did so.
  • Give some tolerance to the check for velocities in the multipole drift. This was spuriously triggering in the case where all particles in a given cell had exactly the bulk velocity.

Merge request reports