lwang-astro / PeTar

PeTar is a high-performance N-body code for modelling the evolution of star clusters and tidal streams, including the effect of galactic potential, dynamics of binary and hierarchical system, single and binary stellar evolution.
MIT License
71 stars 19 forks source link

Fix problem when particle list was not up to date #8

Closed rieder closed 3 years ago

rieder commented 3 years ago

Always call reconstruct_particle_list when accessing particles to make sure the list is up to date