<div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 13 Feb 2019 at 12:56, Matthew Knepley via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">On Wed, Feb 13, 2019 at 7:25 AM Kun Jiao via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">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">
<div lang="EN-US">
<div class="gmail-m_3931579099401084481gmail-m_-3955469714221582768WordSection1">
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I have a problem that need to interchange between two different DMDAs. They have the exactly same size, however they are distributed/partitioned differently across multiple processes. For instance, one DMDA is created with DMDACreated1d,
the other is created with DMDACreated3d. How can I interchange between different DMDAs with VecScatter, or something else?</p></div></div></blockquote><div><br></div><div>Yes, you would need to use VecScatter. Getting this right sounds nontrivial. What are you using it for?</div></div></div></blockquote><div><br></div><div>Kun - we actually do something similar to what you want internal to PCTELESCOPE when repartitioning the DMDAs.</div><div>See here</div><div><br></div><div><a href="https://www.mcs.anl.gov/petsc/petsc-current/src/ksp/pc/impls/telescope/telescope_dmda.c.html">https://www.mcs.anl.gov/petsc/petsc-current/src/ksp/pc/impls/telescope/telescope_dmda.c.html</a><br></div><div><br></div><div>The big difference in PCTELESCOPE is that we building scatters between 2 DMDAs with the same spatial dimension, and different parallel partitions. That said, I don't think moving data between a 1D and 3D DMDA would complicate things greatly, but you won't find any examples within PCTELESCOPE.</div><div><br></div><div>Thanks.</div><div>Dave</div><div><br></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 dir="ltr"><div class="gmail_quote"><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 lang="EN-US"><div class="gmail-m_3931579099401084481gmail-m_-3955469714221582768WordSection1"><p class="MsoNormal"> </p><p class="MsoNormal"><u></u></p>
<p class="MsoNormal">Regards,<u></u><u></u></p>
<p class="MsoNormal">Kun<u></u><u></u></p>
<br>
<p class="gmail-m_3931579099401084481gmail-m_-3955469714221582768msipfooter6d2e06ff" align="Center" style="margin:0px"><span style="font-size:10pt;font-family:Calibri;color:rgb(0,0,0)">Schlumberger-Private</span></p>
</div>
</div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_3931579099401084481gmail_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>
</blockquote></div></div></div>