On Wed, Apr 19, 2023 at 8:40 AM Joauma Marichal < joauma.maric...@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, Matt > 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/>