[petsc-users] inserting multiple rows together into a matrix

Bin Liu lbllm2018 at hotmail.com
Mon Apr 13 09:59:30 CDT 2020


Hi all,

I know how to insert values in one row into the matrix via routine "MatSetValues". I understand I logically should be able to insert multiple rows into the matrix with one call of "MatSetValues". However, I am not sure how to do it. I searched in the PETSc mail list and did not find a relevant question answered before. Could anyone help me and give me a simple example code?

Regards
B.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200413/56580c66/attachment.html>


More information about the petsc-users mailing list