[petsc-users] Error message of nnz cannot be greater than block row length from MatSetValues()

Jed Brown jed at jedbrown.org
Thu Nov 6 19:14:30 CST 2014


Evan Um <evanum at gmail.com> writes:

> Dear Jed,
>
> In my problem, each process has a part of contiguous rows of matrix B. In
> this partitioned matrix, locations of non-zero elements are irregular
> because it is a part of unstructured matrix. It is hard to define the
> distribution of a vector that the partitioned matrix B is multiplied
> with.

You have a square matrix, so the row and column distribution is the
same.  In MatMult(A,x,y), both x and y will have the same distribution.

> Both MatSetSizes(B, partitioned_row_size, partitioned_row_size,
> ngedges_internal, ngedges_internal) 

We need error messages.  Always.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20141107/ca3e1669/attachment.pgp>


More information about the petsc-users mailing list