On Fri, Sep 6, 2019 at 6:07 PM Swarnava Ghosh via petsc-users < petsc-users@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/>