[petsc-users] change matrix

Matthew Knepley knepley at gmail.com
Mon Aug 31 13:54:33 CDT 2020


On Mon, Aug 31, 2020 at 2:51 PM Kun Jiao via petsc-users <
petsc-users at mcs.anl.gov> wrote:

> Hi Petsc Experts,
>
>
>
> Trying to do something like appending some rows (~100 rows) to an already
> created matrix, but could not find any document about it.
>
>
>
> Could anyone provide some information about it?
>

This is not possible. Once created, matrices are optimized for MatMult, not
insertion. You just create another matrix with the extra rows
and copy in.

  Thanks,

     Matt


> Regards,
>
> Kun
>
> Schlumberger-Private
>
-- 
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/20200831/1a7ee280/attachment.html>


More information about the petsc-users mailing list