[petsc-users] is there a function to append matrix

Karl Lin karl.linkui at gmail.com
Mon Aug 31 23:19:34 CDT 2020


Thanks for the feedback. What about if I build A to have as many rows as A
and B and then later on use MatGetRow and MatSetValues to add B matrix
entries to A? Can MatGetRow and MatSetValues be used after MatAssembly is
called? B is much much smaller than A so the number of rows can be added to
just the portion of A on one process. Will this work? Thanks. Regards.

On Mon, Aug 31, 2020 at 11:00 PM Jed Brown <jed at jedbrown.org> wrote:

> Karl Lin <karl.linkui at gmail.com> writes:
>
> > I guess another way to look at this is if I already build matrix A and
> > MatAssembly has been called. Can I populate more rows to matrix A later
> on?
> > With the number of columns and column ownership pattern not changed of
> > course. Thank you.
>
> No.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200831/5281be3f/attachment.html>


More information about the petsc-users mailing list