[petsc-users] Change entries after MatCopy

hxie at umn.edu hxie at umn.edu
Thu May 13 15:43:17 CDT 2010


>
>On 12 May 2010 19:18,  <hxie at umn.edu> wrote:
>> Hi,
>>
>> If I use MatCopy to get a new matrix, can i use MatSetValues to change 
>> some
>> entries of that matrix and do the assemble after that? Or if I just 
>> need to
>> change some diagonal entries, can I use MatDiagonalSet to change the 
>> entries
>> without assembling? Thanks.
>>
>
>Yes and Yes.

The first way does no work. I will try the second way.

>
>
>


More information about the petsc-users mailing list