Can I use MatSetBlockSize() for MPIAIJ

Jed Brown jed at 59A2.org
Sat Nov 7 14:39:41 CST 2009


Ryan Yan wrote:

> Note that you must call MatSetBlockSize
> <http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/Mat/MatSetBlockSize.html#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).

Jed

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20091107/1d3694c4/attachment.pgp>


More information about the petsc-users mailing list