<div dir="ltr"><div><div>Hi all,<br><br></div>I am running some transient simulations using <span class="gmail-st">SNESVINEWTONRSLS. At certain timesteps, I get a "DIVERGED_LINE_SEARCH" which essentially "resets" my solution to zero and messes everything up. I notice that this happens when the SNES Function norm no longer decreases, and if I were to manually terminate the solver right before the final iteration I get the answer I want. <br><br>Is there a way to "detect" this error and use the solution from the previous non-failing iteration? Setting a fixed maximum iteration doesn't seem reasonble because every time level will require different numbers of iterations to converge.<br><br></span></div><span class="gmail-st">Thanks,<br>Justin</span><span class="gmail-st"></span></div>