[petsc-users] interchange between two different DMDAs

Matthew Knepley knepley at gmail.com
Wed Feb 13 06:55:28 CST 2019


On Wed, Feb 13, 2019 at 7:25 AM Kun Jiao via petsc-users <
petsc-users at mcs.anl.gov> wrote:

> Hi,
>
>
>
> 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?
>

Yes, you would need to use VecScatter. Getting this right sounds
nontrivial. What are you using it for?

  Thanks,

     Matt


>
>
> Regards,
>
> Kun
>
> Schlumberger-Private
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190213/affddc7c/attachment.html>


More information about the petsc-users mailing list