[petsc-users] Set diagonals other than main diagonal

Matthew Knepley knepley at gmail.com
Thu Jan 3 11:46:33 CST 2019


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/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190103/e1504fc8/attachment-0001.html>


More information about the petsc-users mailing list