[petsc-users] How to obtain the local matrix from a global matrix in DMDA?

Matthew Knepley knepley at gmail.com
Mon Mar 14 09:47:55 CDT 2022


On Mon, Mar 14, 2022 at 10:35 AM liluo <liluo at um.edu.mo> wrote:

> Dear developers,
>
> I created a DMDA object and obtain the local vector from a global
> vector by using DMGlobalToLocalBegin/End.
>
> How can I obtain the corresponding local matrix from the global matrix?
>
> In my case, the global matrix is of MPIBAIJ type created by
> DMCreateMatrix(da,MATBAIJ,&A);
>
Are you asking for unassembled local matrices?

  Thanks,

    Matt

> Bests,
>
> LI
>
-- 
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/20220314/440d3dd3/attachment.html>


More information about the petsc-users mailing list