<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello All,<div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">a. Be distinct from the old one (i.e. not a super or sub dm).</div><div class="">b. Not “know” about any additions. i.e. the new DM should act as if it was brand new.</div><div class="">c. Carry over any other appended objects such as petscds’es, fe’s, fvm’s, labels etc. </div><div class=""><br class=""></div><div class="">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 class=""><br class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div>Best regards,<br class=""><br class="">Jacob Faibussowitsch<br class="">(Jacob Fai - booss - oh - vitch)<br class="">Cell: (312) 694-3391</div></div>

</div>

<br class=""></div></body></html>