Barnes-Hut-Simulator icon indicating copy to clipboard operation
Barnes-Hut-Simulator copied to clipboard

A bug in ModelNBody.cpp

Open DJLinux opened this issue 8 years ago • 1 comments

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

DJLinux avatar Mar 23 '18 07:03 DJLinux

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.

beltoforion avatar Mar 26 '18 19:03 beltoforion