[petsc-users] Changing a few entries in a matrix
Ganesh Vijayakumar
ganesh.iitm at gmail.com
Fri May 8 16:19:23 CDT 2015
Hello,
On Fri, May 8, 2015 at 5:15 PM, Matthew Knepley <knepley at gmail.com> wrote:
> On Fri, May 8, 2015 at 4:14 PM, Ganesh Vijayakumar <ganesh.iitm at gmail.com>
> wrote:
>
>> Hello,
>>
>> Thanks. Looks like I could set all the possible entries I'll use to
>> zero and selectively overwrite them.
>>
>> Can I overwrite any entries without incurring additional cost in
>> memory? I currently use MatSetValue with the option INSERT_VALUES? Does
>> Petsc have an option to OVERWRITE the existing value?
>>
>
> Here INSERT means the same as overwrite. You only incur costs if you have
> not previously set the element.
>
Oh. That was my intial thinking too. Thanks.
ganesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150508/808f19bb/attachment.html>
More information about the petsc-users
mailing list