<div dir="ltr">If you only have cell-vertex meshes, then using the single-layer version DMPlexGetCone() is faster.<div><br></div><div> Thanks,</div><div><br></div><div> Matt</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Oct 12, 2018 at 5:56 AM 陳宗興 <<a href="mailto:barrydog505@gmail.com">barrydog505@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks, I'll check them out. <br></div><br><div class="gmail_quote"><div dir="ltr">Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> 於 2018年10月12日 週五 下午5:22寫道:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">You want to use DMPlexVecGetClosure:<div><br></div><div><a href="https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DMPLEX/DMPlexVecGetClosure.html" target="_blank">https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DMPLEX/DMPlexVecGetClosure.html</a><br></div><div><br></div><div>The examples shown here don't close cells. What you want. src/dm/impls/plex/examples/tutorials/ex6.c does iterate over cells, and get the closure (vertices), which is what you want.</div><div><br></div><div>Mark</div><div><br></div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Oct 12, 2018 at 4:58 AM 陳宗興 <<a href="mailto:barrydog505@gmail.com" target="_blank">barrydog505@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi all, </div><div dir="ltr"><br></div><div>I have import a .msh file from DMPlexCreateFromFile.</div><div>I have found DMDAGetElements in DMDA's ex5 having this function,</div><div>how can i do this from DMPlex or unstructure grid.</div><div>Are there any methods that can get nodes list refer to unstructure mesh element? <br></div><div>------------------------------------</div><div>for example :<br></div><div> 4</div><div> / \</div><div> / 1 \ </div><div> 2 <font size="1">- - - - - 3</font> element [1] >> nodes list [2 3 4]</div><div><br></div><div>Thanks a lot.</div><div><br></div><div>Best regards,</div><div>Barry</div></div>
</blockquote></div>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="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>