[petsc-users] Segmentation violation in DMSwarmMigrate(sdm_, PETSC_TRUE)
prateekgupta1709 at gmail.com
prateekgupta1709 at gmail.com
Tue Nov 4 02:09:52 CST 2025
Hi,
I am writing a basic particle tracking code with an existing periodic DMDA. All velocity calculations and position updates work fine but migration throws segfault. I have checked and particles are within the periodic box as well.
I discovered that there is an internal field for coordinates which has to be defined using its identifier instead of explicitly registering a field. I am not registering any velocity field (using external vectors).
Is there something I am missing?
Thanks,
Prateek
More information about the petsc-users
mailing list