[petsc-users] Set diagonals other than main diagonal

Sajid Ali sajidsyed2021 at u.northwestern.edu
Thu Jan 3 14:21:30 CST 2019


Got it. Thank you!

On Thu, Jan 3, 2019 at 11:46 AM Matthew Knepley <knepley at gmail.com> wrote:

> On Thu, Jan 3, 2019 at 12:24 PM Sajid Ali via petsc-users <
> petsc-users at mcs.anl.gov> wrote:
>
>> Hi,
>>
>> Is there any simple way of setting minor diagonals. The main diagonal can
>> be set by MatDiagonalSet but there's no equivalent way of doing it for for
>> minor diagonals. Does the preferred way to do this involve using
>> MatSetValues or there a simpler way?
>>
>
> No, we do not have an interface for this. You really only see this
> structure in 1D problems, so we have
> not spent time on it.
>
>   Thanks.
>
>      Matt
>
>
>> Thank You,
>> Sajid Ali
>> Applied Physics
>> Northwestern University
>>
>
>
> --
> 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
>
> https://www.cse.buffalo.edu/~knepley/
> <http://www.cse.buffalo.edu/~knepley/>
>


-- 
Sajid Ali
Applied Physics
Northwestern University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190103/1c691d04/attachment.html>


More information about the petsc-users mailing list