<div dir="ltr"><div dir="ltr">On Wed, Jul 14, 2021 at 1:18 PM Eric Chamberland <<a href="mailto:Eric.Chamberland@giref.ulaval.ca">Eric.Chamberland@giref.ulaval.ca</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">Hi,<br>
<br>
I want to use DMPlexDistribute from PETSc for computing overlapping and <br>
play with the different partitioners supported.<br>
<br>
However, after calling DMPlexDistribute, I noticed the elements are <br>
renumbered and then the original number is lost.<br>
<br>
What would be the best way to keep track of the element renumbering?<br>
<br>
a) Adding an optional parameter to let the user retrieve a vector or <br>
"IS" giving the old number?<br>
<br>
b) Adding a DMLabel (seems a wrong good solution)<br>
<br>
c) Other idea?<br>
<br>
Of course, I don't want to loose performances with the need of this <br>
"mapping"...<br></blockquote><div><br></div><div>You need to call</div><div><br></div><div> <a href="https://petsc.org/release/docs/manualpages/DM/DMSetUseNatural.html">https://petsc.org/release/docs/manualpages/DM/DMSetUseNatural.html</a></div><div><br></div><div>before call DMPlexDistribute(). Then you can call</div><div><br></div><div> <a href="https://petsc.org/release/docs/manualpages/DMPLEX/DMPlexGlobalToNaturalBegin.html">https://petsc.org/release/docs/manualpages/DMPLEX/DMPlexGlobalToNaturalBegin.html</a></div><div><br></div><div>to map back to the original numbering if you want. This is the same thing that DMDA is doing.</div><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>
Eric<br>
<br>
-- <br>
Eric Chamberland, ing., M. Ing<br>
Professionnel de recherche<br>
GIREF/Université Laval<br>
(418) 656-2131 poste 41 22 42<br>
<br>
</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>