<div dir="ltr"><div dir="ltr">On Tue, Dec 8, 2020 at 8:58 AM David Schneider <<a href="mailto:dav.schneider@tum.de">dav.schneider@tum.de</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear all,<br>
<br>
I'm using a KSPLSQR solver without preconditioning and configure the <br>
solver once in the beginning. Afterwards, I solve my system multiple <br>
times in a time-dependent system and I would like to use an initial <br>
guess (from the previous solution). Currently, I use <br>
`KSPSetInitialGuessNonzero` for this purpose, but it may happen that the <br>
actual guess is zero. If the initial guess is zero, the solver fails to <br>
converge, at least with the default configuration. Setting <br>
`KSPSetInitialGuess` with `PETSC_FALSE` (which should also be the <br>
default) zeros the guess out. Is there a (native) way to preserve the <br>
initial guess, but still ensure convergence in the KSPsolver in case the <br>
guess is zero?<br></blockquote><div><br></div><div>I do not understand. If the solver does not converge for some initial guess, that</div><div>is a function of the solver used. You might need a better preconditioner.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Thanks in advance,<br>
David<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>