[petsc-users] Size of off-diagonal matrix

Jed Brown jed at 59A2.org
Thu Jun 23 09:50:39 CDT 2011


On Thu, Jun 23, 2011 at 16:47, John Fettig <john.fettig at gmail.com> wrote:

> I'm trying to use MatCreateMPIAIJWithSplitArrays, but it isn't clear
> to me how the off-diagonal portion is supposed to be constructed.
>

Okay, it's defined by compressing all the sorted off-process entries and
then defining the sequential matrix operating on those values.

Unless you already happen to use the same format, you're better off using
MatSetValues().
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110623/441df6e3/attachment.htm>


More information about the petsc-users mailing list