[petsc-users] Update DMDA attached to DMSWARM

MIGUEL MOLINOS PEREZ mmolinos at us.es
Wed Jan 15 09:41:46 CST 2025


Thank you Matt.

Yes, I am getting the "CellDM" from the DMSwarm.

1. I have recently overhauled this functionality because it was not flexible enough for the plasma simulation we do. Thus main and release work differently.

Nice to hear that. Should I move to main?

2. I assume you are using release

You are correct.

3. In both main and release, if you change the coordinates of your CellDM mesh, you need to rebin the particles. The easiest way to do this is to call DMSwarmMigrate(sw, PETSC_FALSE).

What do you mean by rebin?

Miguel


  Thanks,

     Matt

Best,
Miguel
--
What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.
-- Norbert Wiener

https://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!eUTInZmcoFy9twTFZpjoHI_oclLg6kxFkxESVFuz7ksTiA5wLrEyRiDRDm6z991kmoCDYegFCzfkcXOWBI6zXw$ <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!eUTInZmcoFy9twTFZpjoHI_oclLg6kxFkxESVFuz7ksTiA5wLrEyRiDRDm6z991kmoCDYegFCzfkcXM3SNA3Ag$ >

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250115/d03cc486/attachment.html>


More information about the petsc-users mailing list