danieljprice / phantom

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

Fix the corruption issue while creating sink dynamically #548

Closed Yrisch closed 4 months ago

Yrisch commented 4 months ago

Type of PR: Bug fix

Description: Crash in the header allocation while writing a small dump in the middle of the simulation. Seems to come from a bad indexing during initialization of the array fxyz_ptmass_sinksink in ptmass_create See #547 for more details....

Testing:

Did you run the bots? no

Did you update relevant documentation in the docs directory? no

danieljprice commented 4 months ago

thanks for the quick fix Yann!