<div dir="ltr"><div dir="ltr">On Tue, Jul 16, 2019 at 11:33 AM Jason Monschke via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello,</div><div><br></div><div>I have a DMPlex 3D mesh containing cells, faces, edges, and vertices. What is the best way to get the face which contains a set of vertices in this mesh? I can find the edge which contains a set of vertices using DMPlexGetJoin. However, the documentation explicitly says that it does not work for multilevel joins.</div><div><br></div><div>My current idea is to:<br></div><div>1. Find the supporting edges of each vertex using DMPlexGetSupport and add them to a list of edges</div><div>2. Remove all edges that only appear once in the list<br></div><div>3. Use DMPlexGetJoin to find the face that is the join of these edges</div><div><br></div><div>Does this sound like it will work? Is there a better way to do this?</div></div></blockquote><div><br></div><div><a href="https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DMPLEX/DMPlexGetFullJoin.html">https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DMPLEX/DMPlexGetFullJoin.html</a><br></div><div><br></div><div>I could not think of a better name.</div><div><br></div><div>  Thanks,</div><div><br></div><div>    Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Cheers,</div><div>Jason<br></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>