[petsc-users] Problem: matrix is missing diagonal entry

Thomas Witkowski Thomas.Witkowski at tu-dresden.de
Thu Dec 8 08:07:32 CST 2011


Zitat von Matthew Knepley <knepley at gmail.com>:

>
> Did you remember to call MatAssemblyBegin/End()?
>

Yes

>   Matt
>
>
>> Thomas
>>
>> Zitat von Thomas Witkowski   
>> <Thomas.Witkowski at tu-dresden.**de<Thomas.Witkowski at tu-dresden.de>
>> >:
>>
>>
>>  I've some strange problem: I create a mpiaij matrix, fill it with some
>>> values and want to make use of it in kspsolve. But I get the error
>>>
>>> [15]PETSC ERROR: Object is in wrong state!
>>> [15]PETSC ERROR: Matrix is missing diagonal entry 1129!
>>>
>>> I've checked the following  things:
>>> - There is a MatSetValues call that contains the entry 1129/1129 with
>>> some value
>>> - MatView shows that there exists the value 1129/1129
>>> - MatAssemblyBegin/End is called correctly
>>> - valgrind says: 0 errors
>>> - ddt also cannot find anything unusual
>>>
>>> I use petsc 3.2-p5, its compiled in debug mode. What could I check to
>>> solve this problem? Any hints?
>>>
>>> Thomas
>>>
>>
>>
>>
>
>
> --
> What most experimenters take for granted before they begin their
> experiments is infinitely more interesting than any results to which their
> experiments lead.
> -- Norbert Wiener
>




More information about the petsc-users mailing list