<div dir="ltr"><div dir="ltr">On Thu, Jun 25, 2020 at 4:00 PM Jacob Faibussowitsch <<a href="mailto:jacob.fai@gmail.com">jacob.fai@gmail.com</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 style="overflow-wrap: break-word;">Hello All,<div><br></div><div>Is there a way to deep copy a plex locally without having to resort to DMPlexGetGatherDM and by extension DMPlexGetRedundantDM? I would as much as possible like to avoid copying all-to-one -> one-to-all. Originally I was using DMClone but have now discovered that this is a shallow copy. I am trying to add distinct sections to an existing mesh (not refine) and would like the new DM to:</div><div><br></div><div>a. Be distinct from the old one (i.e. not a super or sub dm).</div><div>b. Not “know” about any additions. i.e. the new DM should act as if it was brand new.</div><div>c. Carry over any other appended objects such as petscds’es, fe’s, fvm’s, labels etc. </div><div><br></div><div>If I had to do it by hand, exactly what can I copy directly and what needs to be recomputed, especially in parallel? Getting and setting mesh coords, dimension, cones are somewhat straightforward, but what about the SF's, PetscSections, and others? </div></div></blockquote><div><br></div><div>You want</div><div><br></div><div>  DMClone()</div><div>  DMSetLocalSection()</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"><div style="overflow-wrap: break-word;"><div><div>
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div>Best regards,<br><br>Jacob Faibussowitsch<br>(Jacob Fai - booss - oh - vitch)<br>Cell: (312) 694-3391</div></div>

</div>

<br></div></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>