[petsc-users] MatCreateNest

Matthew Knepley knepley at gmail.com
Sun May 10 17:05:16 CDT 2015


On Sun, May 10, 2015 at 4:33 PM, Bikash Kanungo <bikash at umich.edu> wrote:

> Hi,
>
> I'm using MatCreateNest where I assemble four submatrices: A00, A01, A10
> and A11 into matrix A. For me A00, A01 and A10 are parallel matrices. But
> A11 is a sequential matrix present in all processors. Is there any
> restriction on the type of the submatrices used in MatCreateNest , i.e.,
> that all must be parallel or sequential but not a mix of parallel and
> sequential matrices?
>

I believe all matrices need to have the same comm, so you would need to
either

  a) make an MPIAIJ matrix which only has rows on some process, or

  b) divide the rows among processes

   Matt


> Thanks,
> Bikash
>
> --
> Bikash S. Kanungo
> PhD Student
> Computational Materials Physics Group
> Mechanical Engineering
> University of Michigan
>
>


-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150510/abbbe0d9/attachment.html>


More information about the petsc-users mailing list