[petsc-users] [petsc-maint] Lagrangian particle tracking - ghost cells

Matthew Knepley knepley at gmail.com
Wed Apr 19 07:55:58 CDT 2023

On Wed, Apr 19, 2023 at 8:40 AM Joauma Marichal <
joauma.marichal at uclouvain.be> wrote:

> Hello,
> I am using the DMSwarm library in some Eulerian-Lagrangian approach to
> have vapor bubbles in water.
> I would like the bubbles to have an impact on the water fields of the same
> cells and the adjacent ones. Is there any petsc function that can allow to
> sum the ghost cell values (of an adjacent proc) to the actual ones (on the
> actual proc)?

I think you can use the GlobalToLocal map to populate a local vector, and
then just sum values as normal. This is our preferred
way to handle these kinds of halo communication. Will that work?



> Thanks a lot for your help.
> Best regards,
> Joauma

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://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230419/ae2baaca/attachment.html>

More information about the petsc-users mailing list