Can I use MatSetBlockSize() for MPIAIJ

Jed Brown jed at
Sat Nov 7 14:12:40 CST 2009

Ryan Yan wrote:
> Hi All,
> I have a question as follows:
> In order to use MatSetValuesBlocked() for a MPIAIJ matrix. I need to
> call MatSetBlockSize() when I create the matrix.

Call MatSetBlockSize *after* preallocation.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the petsc-users mailing list