[petsc-users] stopping KSPSolve and then restarting where it stopped
Barry Smith
bsmith at petsc.dev
Wed Feb 9 10:47:44 CST 2022
Yes, in that situation you just need to call KSPSetInitalGuessNonzero() and then call KSPSolve again. Note that for GMRES and friends this will begin afresh by starting with a new Krylov space, it won't start from the partially built one.
Be sure to reset KSPSetInitalGuessNonzero() for your next solve if that does require an initial guess of zero.
> On Feb 9, 2022, at 11:15 AM, Medane TCHAKOROM <medane.tchakorom at univ-fcomte.fr> wrote:
>
> Hello,
>
> Is it possible to run KSPSolve till the convergence (or not) , let the program do some work,
>
> and then restart KSPSolve where it stopped ? (maybe with different tolerance or max iterations)
>
>
> Thanks
>
More information about the petsc-users
mailing list