[petsc-users] Petsc Matrix modifications

Brandon Denton bldenton at buffalo.edu
Tue Nov 26 07:22:47 CST 2019


Good Morning,

Is it possible to expand a matrix in petsc? I current created and loaded a
matrix (6 x 5) which holds information required later in my program. I
would like to store additional information in the matrix by expanding its
size, let's say make it at 10 x 5 matrix. How is this accomplished in
petsc. When I try to use MatSetSize() or MatSetValue() my code throws
errors. What is the process for accomplishing this?

Thank you in advance for your time.
Brandon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20191126/cc5db26d/attachment.html>


More information about the petsc-users mailing list