[petsc-users] DMPlex cell number containing a point in space

Matthew Knepley knepley at gmail.com
Mon Sep 16 08:37:37 CDT 2019


On Fri, Sep 6, 2019 at 6:07 PM Swarnava Ghosh via petsc-users <
petsc-users at mcs.anl.gov> wrote:

> Dear Petsc developers and users,
>
> I have a DMPlex mesh in 3D. Given a point with (x,y,z) coordinates, I am
> trying the find the cell number in which this point lies, and the vertices
> of the cell. Is there any DMPlex function that will give me the cell number?
>

Sorry, I lost this mail.

In serial, you can just use DMLocatePoint(). If you have some points and
you are not
sure which process they might be located on, then you need a
DMInterpolation context.

  Thanks,

    Matt


> Thank you,
> SG
>


-- 
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/20190916/5964bfe8/attachment-0001.html>


More information about the petsc-users mailing list