beltoforion / Barnes-Hut-Simulator

A C++ implementation of the Barnes-Hut-Algorithm.
https://beltoforion.de/en/barnes-hut-galaxy-simulator/
62 stars 3 forks source link

A bug in ModelNBody.cpp #2

Open DJLinux opened 6 years ago

DJLinux commented 6 years ago

In file: ModelNBody.cpp method: ModelNBody::Init()

m_center.y += st.x st_aux.mass; must be: m_center.y += st.y st_aux.mass;

DJ

beltoforion commented 6 years ago

Yes that sounds plausible. But it doesn't really matter since this setup is symmetric. Nevertheless good find, thank you for reporting. Took only three years for someone to spot it.