<div dir="ltr"><div dir="ltr">On Tue, Feb 19, 2019 at 11:00 AM Lawrence Mitchell via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</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">Dear petsc-users,<br>
<br>
I have two (different) distributions of the (topologically) same DMPlex object (DM_a and DM_b).<br>
<br>
I would like to identify the map from points(DM_a) to points(DM_b) such that I can transfer fields between the two.<br>
<br>
Does such a facility exist?<br></blockquote><div><br></div><div>Case #1: You made DM_b from DM_a</div><div><br></div><div> Then you are fine. The PetscSF you get from Distribute() is the map.</div><div><br></div><div>Case #2: They are completely unconnected</div><div><br></div><div> This is hard. I wrote code to do it at least twice, but I keep throwing it away when I rewrite things because</div><div>it is so ugly. Hopefully you do not need this.</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">
Lawrence</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>