Can I use MatSetBlockSize() for MPIAIJ

Jed Brown jed at 59A2.org
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.

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/87f58206/attachment.pgp>


More information about the petsc-users mailing list