<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>hi<br>
</p>
<div class="moz-cite-prefix">On 28/05/19 11:32 AM, Matthew Knepley
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAMYG4GkCjcNaZLzHOqoDUCZg2XS=PtXKrVGz8GAjThu8NLpqzw@mail.gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div class="gmail_quote"><br>
<div>I would not do that. It should be much easier, and better
from a workflow standpoint,</div>
<div>to just redistribute in parallel. We now have several
test examples that redistribute</div>
<div>in parallel, for example</div>
<div><br>
</div>
<div> <a
href="https://bitbucket.org/petsc/petsc/src/cd762eb66180d8d1fcc3950bd19a3c1b423f4f20/src/dm/impls/plex/examples/tests/ex1.c#lines-486"
moz-do-not-send="true">https://bitbucket.org/petsc/petsc/src/cd762eb66180d8d1fcc3950bd19a3c1b423f4f20/src/dm/impls/plex/examples/tests/ex1.c#lines-486</a></div>
<div><br>
</div>
<div>Let us know if you have problems.</div>
</div>
</div>
</blockquote>
<p>If you use DMPlexDistribute() a second time to redistribute the
mesh, presumably it will first delete all the partition ghost
cells created from the initial distribution (and create new ones
after redistribution).</p>
<p>If I have also used DMPlexConstructGhostCells() to create
boundary condition ghost cells on the distributed mesh, what
happens to them when I redistribute? Do they get copied over to
the redistributed mesh? or is it better not to add them until the
mesh has been redistributed?</p>
<p>- Adrian<br>
</p>
<pre class="moz-signature" cols="72">--
Dr Adrian Croucher
Senior Research Fellow
Department of Engineering Science
University of Auckland, New Zealand
email: <a class="moz-txt-link-abbreviated" href="mailto:a.croucher@auckland.ac.nz">a.croucher@auckland.ac.nz</a>
tel: +64 (0)9 923 4611
</pre>
</body>
</html>