<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear PETSc users and developers,<div><br></div><div>is there an easy way to set a <i>minimum</i> iteration number to a KSP context (such as a maximum iteration number in KSPSetTolerances())?</div><div><br></div><div>I don't know, if the following explanation is useful, but I will try to give an example usage here:</div><div>I need this to e.g. solve a linear system of equations several times (as the physical system proceeds in time); during a single call / timestep, the system, might not change stronger than the RTOL in use, but in the long-run (several hundreds to thousands of calls), the system will actually change by several RTOL; nonetheless, the default KSP solver stops without doing any iteration (= 0), i.e. the system does not change at all.</div><div><br></div><div>I have the feeling that it might be possible by using my own convergence test with KSPSetConvergenceTest(), but I am not 100% sure and would prefer to go with the standard PETSc convergence test, just adding the <i>minimum</i> iteration number.</div><div><br></div><div>Thanks a lot,</div><div>Rolf</div></body></html>