exact MPI-based matrix using MatGetSubMatrix()

Yujie recrusader at gmail.com
Tue Dec 23 18:49:12 CST 2008


Hi, PETSc Developer

Now, I have two matrices, A and B. A (its dimension is 2N*2N) is MPIDense
format. B (N*N) is MPIAIJ.

I want to exact four matrices from A, like this

     A11 A12

A=

     A21 A22

each submatrices is multplied by B. My question is if A11, A12, A21, A22
have same distribution with B, how to do it with MatGetSubMatrix()?

Thanks a lot.

Regards,

Yujie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20081223/f142322e/attachment.htm>


More information about the petsc-users mailing list