[petsc-users] Question on non-zero pattern

Sanjay Govindjee s_g at berkeley.edu
Thu Mar 14 13:28:57 CDT 2013


Is there a mechanism for resetting a matrix's non-zero pattern?

In particular,  I have a preallocated a matrix, set the values, and 
assembled it.
And used it to solve a problem.

Now I would like to zero it, and reassemble it with a different non-zero 
pattern.
Note the matrix has been preallocated so that it can accommodate both 
non-zero
patterns.

-sanjay


More information about the petsc-users mailing list