[petsc-users] Segmentation violation in DMSwarmMigrate(sdm_, PETSC_TRUE)
prateekgupta1709 at gmail.com
prateekgupta1709 at gmail.com
Tue Nov 4 02:45:49 CST 2025
Forgot to add,
even with PETSC_FALSE option, I get the same segfault error.
>
> On 4 Nov 2025, at 1:39 PM, prateekgupta1709 at gmail.com wrote:
>
> 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