[petsc-users] DMPlex SF
Matthew Knepley
knepley at gmail.com
Sat Apr 4 16:58:08 CDT 2026
On Sat, Apr 4, 2026 at 1:15 PM Miguel Molinos <m.molinos at upm.es> wrote:
> Dear all,
>
> For a given cell in a local patch of a distributed DMPlex mesh, is there
> a way to retrieve the list of ranks that share that same cell?
>
It is somewhat involved. Each process that does not own the cell will know
the owner. You will know how many processes also have the cell using
PetscSFComputeRootDegree(), however you will not have the rank. You can use
PetscSFGather() to get the ranks, and then Bcast that to the leaf
processes. This pattern creates the two-sided information. We do this
inside VecScatter, and I guess we could expose that. Junchao would know
that better than I would.
Thanks,
Matt
> Thanks,
>
> 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!fjhAfMA8h9hZzCgvz4iznQxyS7LjROeErvhtCzSaipXSDj5Wt_5y5NXymhXO6lEeh0EUSEzlX4jdHDYIsE2i$ <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!fjhAfMA8h9hZzCgvz4iznQxyS7LjROeErvhtCzSaipXSDj5Wt_5y5NXymhXO6lEeh0EUSEzlX4jdHHvIK6a9$ >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20260404/d215c60e/attachment-0001.html>
More information about the petsc-users
mailing list