[petsc-users] stopping KSPSolve and then restarting where it stopped

Medane TCHAKOROM medane.tchakorom at univ-fcomte.fr
Wed Feb 9 12:39:56 CST 2022


Re:

Thanks

On 09/02/2022 17:47, Barry Smith wrote:
>    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