<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">On 18-02-19 03:30 PM, Matthew Knepley
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAMYG4GkfVy=5kt3eCcp5Vw2N-+bBH0JSG1qePbkxZgahffQVfQ@mail.gmail.com">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Mon, Feb 19, 2018 at 3:11 PM,
Danyang Su <span dir="ltr"><<a
href="mailto:danyang.su@gmail.com" target="_blank"
moz-do-not-send="true">danyang.su@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">Hi Matt,<br>
<br>
Would you please let me know how to check if a cell is
local owned? When overlap is 0 in DMPlexDistribute, all
the cells are local owned. How about overlap > 0? It
sounds like impossible to check by node because a cell can
be local owned even if none of the nodes in this cell is
local owned.<br>
</blockquote>
<div><br>
</div>
<div>If a cell is in the PetscSF, then it is not locally
owned. The local nodes in the SF are sorted, so I use</div>
<div>PetscFindInt (<a
href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscFindInt.html"
moz-do-not-send="true">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscFindInt.html</a>).</div>
</div>
</div>
</div>
</blockquote>
Hi Matt,<br>
<br>
Would you please give me a little more about how to mark the ghost
cells when overlap > 0? What do you mean a cell is in the
PetscSF? I use PetscSFView to export the graph (original mesh file
pile.vtk) and it exports all the cells, including the ghost cells
(PETScSFView.txt).<br>
<br>
Thanks,<br>
<br>
Danyang <br>
<blockquote type="cite"
cite="mid:CAMYG4GkfVy=5kt3eCcp5Vw2N-+bBH0JSG1qePbkxZgahffQVfQ@mail.gmail.com">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<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">
Thanks,<br>
<br>
Danyang<br>
</blockquote>
</div>
-- <br>
<div class="gmail-m_-8557986044721592658gmail_signature">
<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.caam.rice.edu/%7Emk51/"
target="_blank" moz-do-not-send="true">https://www.cse.buffalo.edu/~<wbr>knepley/</a><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>