[petsc-users] Adding rows and columns to a matrix

David Knezevic david.knezevic at akselos.com
Thu Sep 3 18:52:08 CDT 2015


I need to add Lagrange multipliers to an existing system of equations,
which requires me to expand the matrix.

I figured I would allocate a new larger matrix with the appropriate
non-zero structure, and then copy the entries from the smaller matrix over
to it. But I was wondering if there might be a better way to do this?

Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150903/52602353/attachment.html>


More information about the petsc-users mailing list