Matrix reuse

Berend van Wachem berend at
Fri Nov 23 03:04:15 CST 2007


I use MatZeroEntries on the matrix, and then re-use it. I'm not sure 
what the gain in time is, though.


Zhifeng Sheng wrote:
> Dear all
> In my application, I have small matrices that are created and destroied, 
> those matrices are of the same nozero pattern.
> I wonder if there is a way to reuse that matrices instead of destroy 
> them every time.
> Thank you
> Best regards
> Zhifeng Sheng

More information about the petsc-users mailing list