<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div dir="ltr">
<div dir="ltr">Li :<br>
</div>
<div>You can use '-ksp_max_it 20000' to change maximum iteration count. However, it does not make sense to continue after it fails at 10000 iterations. You should figure out why linear solver diverges. Run your code with '-ksp_monitor' or '-ksp_monitor_true_residual'.</div>
<div>Hong</div>
<div><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">
<div dir="ltr">
<div dir="ltr" class="gmail-m_7953531932905017049m_8336909774219159584gmail_signature">
<div dir="ltr">
<div><font size="2"><font face="trebuchet ms, sans-serif">Dear developer,</font></font></div>
<div><br>
</div>
<div>I am using SNES for solving a nonlinear system. For some cases, SNES diverged -3 with "DIVERGED_LINEAR_SOLVE" when the linear solver reached its maximum iteration count (i.e -ksp_max_it 10000).</div>
<div>Is that possible to let SNES continue even though the linear solver reaches the maximum number of iterations? Just take the result at 10000 for the Jacobian solution and then update the Newton step?</div>
<div><br>
</div>
<div>Best,</div>
<div>Li</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
<br>
<div>
<hr>
</div>
<font face="Arial" size="1">This message and its contents, including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message
from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email.</font></blockquote>
</div>
</div>
</body>
</html>