<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 20 Apr 2021 at 01:06, Constantine Khrulev <<a href="mailto:ckhroulev@alaska.edu">ckhroulev@alaska.edu</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">Hi,<br>
<br>
I would like to transfer values from one DMDA-managed Vec (i.e. created <br>
using DMCreateGlobalVector() or equivalent) to a Vec managed using a <br>
different DMDA instance (same number of elements, same number of degrees <br>
of freedom, *different* domain decomposition).<br>
<br>
What approach would you recommend?<br>
<br></blockquote><div><br></div><div>VecScatter.<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">
Bonus question: what about DMDAs using different MPI communicators?<br></blockquote><div><br></div><div>VecScatter. :D<br></div><div><br></div><div>We do exactly this in PCTELESCOPE using VecScatter.</div><div>It might be worth snooping through telescope_dmda.c which you can find here<br></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></div><div><br></div><div>Thanks,</div><div>Dave<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Thanks!<br>
<br>
-- <br>
Constantine<br>
<br>
</blockquote></div></div>