<div dir="ltr"><div dir="ltr">On Wed, May 29, 2019 at 10:38 PM Adrian Croucher <<a href="mailto:a.croucher@auckland.ac.nz">a.croucher@auckland.ac.nz</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 bgcolor="#FFFFFF">
<p>hi<br>
</p>
<div class="gmail-m_2193789652482458617moz-cite-prefix">On 28/05/19 11:32 AM, Matthew Knepley
wrote:<br>
</div>
<blockquote type="cite">
<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" target="_blank">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></p></div></blockquote><div>Hmm, I had not thought about that. It will not do that at all. We have never rebalanced a simulation</div><div>using overlap cells. I would have to write the code that strips them out. Not hard, but more code.</div><div>If you only plan on redistributing once, you can wait until then to add the overlap cells.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF"><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></p></div></blockquote><div>Same thing here. Don't add ghost cells until after redistribution.</div><div><br></div><div>If you want to redistribute multiple times, again we would need to strip out those cells.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF"><p>- Adrian<br>
</p>
<pre class="gmail-m_2193789652482458617moz-signature" cols="72">--
Dr Adrian Croucher
Senior Research Fellow
Department of Engineering Science
University of Auckland, New Zealand
email: <a class="gmail-m_2193789652482458617moz-txt-link-abbreviated" href="mailto:a.croucher@auckland.ac.nz" target="_blank">a.croucher@auckland.ac.nz</a>
tel: +64 (0)9 923 4611
</pre>
</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>