phetsims / build-a-nucleus

"Build a Nucleus" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
0 stars 5 forks source link

nucleonShellPositions arrays are incorrectly filled #66

Closed Luisav1 closed 1 year ago

Luisav1 commented 1 year ago

The protonShellPositions and neutronShellPositions arrays in ParticleNucleus are incorrectly filled in cases where the nucleons are added rapidly after one another. I believe this might be because the array positions didn't get filled with incoming nucleons yet.

https://user-images.githubusercontent.com/52978048/211079555-1b376e6f-6666-4615-a7d9-c3ed4d0e9f96.mp4

In trying to track down this issue @marlitas and I found a few things:

zepumph commented 1 year ago

@Luisav1 said this is probably fixed, but I'll assign to @Luisav1 to confirm and then close. Thanks!

Luisav1 commented 1 year ago

Can confirm this is fixed now. Closing.