MatCreateMPIAIJWithSplitArrays and MatSetValues

Matthew Knepley knepley at
Fri Aug 14 10:08:01 CDT 2009

On Fri, Aug 14, 2009 at 3:54 AM, Lukasz Kaczmarczyk
<likask at>wrote:

> Hello
> I created matrix with some off-processor entries using
> MatCreateMPIAIJWithSplitArrays. However I noticed problem, I can not set
> values on off-proc entries by using MatSetValue and MatSetValues. Can You
> help me?

You should be able to (after calling MatAssemblyBegin/End). What happens?
Can you give a simple example.


> Regards
> Lukasz
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the petsc-users mailing list