[petsc-users] Reset the matrix

Jed Brown jedbrown at mcs.anl.gov
Tue Jan 22 19:00:05 CST 2013


Just call the appropriate preallocation routine. It can't very well be done
in-place because the data structure gets repacked in Assembly.


On Tue, Jan 22, 2013 at 6:54 PM, John Fettig <john.fettig at gmail.com> wrote:

> Is it possible to reset a matrix to the state it was in before any values
> were set?  I.e. removing all nonzero structure as well as values and
> returning it to just a pre-allocated state?
>
> Regards,
> John
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130122/4812a458/attachment.html>


More information about the petsc-users mailing list