Can I use MatSetBlockSize() for MPIAIJ

Jed Brown jed at
Sat Nov 7 14:39:41 CST 2009

Ryan Yan wrote:

> Note that you must call MatSetBlockSize
> <>()
> when constructing this matrix (and before preallocating it).........

Indeed, thanks for pointing it out.  I have fixed the documentation in
petsc-dev and also made MatSetBlockSize() work for BAIJ (it just checks
that the block size agrees with the way the matrix was allocated).


-------------- 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