<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div>   Actually, with DMPLEX the ghost vertices are not at the end of the local vector, they can be anywhere within the list. <div class=""><br class=""></div><div class="">   But I have a work-in-progress branch <a href="https://gitlab.com/petsc/petsc/-/merge_requests/4542" class="">https://gitlab.com/petsc/petsc/-/merge_requests/4542</a> that labels the ghost locations and moves them to the end. You are welcome to try it.</div><div class=""><br class=""></div><div class="">  Barry</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Nov 26, 2021, at 8:16 AM, Mark Adams <<a href="mailto:mfadams@lbl.gov" class="">mfadams@lbl.gov</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">First, ghost vertices only show up in "local" (vs "global") vectors and the ghost values are ordered after the locally owned ones.<div class="">Others might have more to add.</div><div class="">Mark<br class=""><div class=""><br class=""></div></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 26, 2021 at 12:49 AM 袁煕 <<a href="mailto:yuanxi@advancesoft.jp" class="">yuanxi@advancesoft.jp</a>> wrote:<br class=""></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" class="">Dear PETSc-team,<div class=""><br class=""></div><div class="">When the mesh is distributed, the vertices are renumbered and some vertices are shared by neighboring CPUs. My question is:<br class=""></div><div class=""><br class=""></div><div class="">1. How to check which vertice is a ghost one?</div><div class="">2. Are those ghost vertices always at the end of vertices list? If not</div><div class="">3. Are there simple ways to let those ghost vertices come after owned ones?</div><div class=""><br class=""></div><div class="">Many thanks</div><div class=""><br class=""></div><div class="">Yuan</div></div>
</blockquote></div>
</div></blockquote></div><br class=""></div></body></html>