[petsc-users] Question on KSPSetReusePreconditioner

Yuyun Yang yyang85 at stanford.edu
Thu Apr 18 10:44:08 CDT 2019


Hello team,

I have a question on when I should be setting KSPSetReusePreconditioner to PETSC_TRUE or PETSC_FALSE. It made a pretty big difference in the solutions I get when I ran my code testing both settings, so is recalculating the preconditioner better since it will make the convergence faster and the solution more accurate? On the other hand, if the operator is updated every time step (but same nonzero pattern), will reconstructing the pc become time-consuming?

Thank you!
Yuyun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190418/24c4cdd6/attachment.html>


More information about the petsc-users mailing list