Re: [petsc-users] Set diagonals other than main diagonal

2019-01-03 Thread Sajid Ali via petsc-users
Got it. Thank you! On Thu, Jan 3, 2019 at 11:46 AM Matthew Knepley wrote: > On Thu, Jan 3, 2019 at 12:24 PM Sajid Ali via petsc-users < > petsc-users@mcs.anl.gov> wrote: > >> Hi, >> >> Is there any simple way of setting minor diagonals. The main diagonal can >> be set by MatDiagonalSet but

[petsc-users] Set diagonals other than main diagonal

2019-01-03 Thread Sajid Ali via petsc-users
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? Thank You, Sajid Ali Applied Physics