[petsc-users] Matrix version of VecScatterCreateToAll

Junchao Zhang junchao.zhang at gmail.com
Sun Dec 18 08:36:45 CST 2022


I am not clear on what you said "this information must be viewed in all mpi
ranks."  Even with preallocator, each rank only needs to insert entries it
knows (i.e., don't need to get all entries)

Maybe you could provide an example code for us to better understand what
you mean?

--Junchao Zhang


On Sun, Dec 18, 2022 at 8:25 AM 김성익 <ksi2443 at gmail.com> wrote:

> Hello,
>
>
> Is there a matrix version function of VecScatterCreateToAll?
>
> I'm using preallocator for preallocation of global matrix.
> Prior to using the preallocator, information related to allocation is
> stored in the specific matrix, and this information must be viewed in all
> mpi ranks.
> For using preallocator, I need scattering the specific matrix info to all
> mpi ranks.
>
> Thanks,
> Hyung Kim
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20221218/244824a5/attachment.html>


More information about the petsc-users mailing list