danieljprice / phantom

Phantom Smoothed Particle Hydrodynamics and Magnetohydrodynamics code
https://phantomsph.github.io
Other
94 stars 223 forks source link

Bugfix iorig in inject_wind routine #509

Closed MatsEsseldeurs closed 5 months ago

MatsEsseldeurs commented 6 months ago

Type of PR: Bug fix

Description: In the routine inject_particle, when particles are deleted before injecting new particles, not all particles are updated in update_injected_particles afterwards. It is fixed now by readjusting npart_old in inject_particle

Testing: run the model that had the bug, which is now fixed. Will make unit tests later

Did you run the bots? yes

Did you update relevant documentation in the docs directory? not relevant