<div dir="ltr"><span style="font-size:12.8px">Hello,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I am working to solve a linear system of equations using a KSP solver. The size of the matrix is approximately ~370,000. The following settings have been used to set up the solver"</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><img src="cid:ii_14faec09345da15e" alt="Inline image 1" width="544" height="203" class="" tabindex="0"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">The L2 norm of the RHS for this problem is ~365, which has been calculated using the subroutine <i>VecNorm</i>. When I solve this system, I am finding that irrespective of the number of maximum iterations the L2 norm of final residual is pretty much constant around ~37860. The L2 norm of the residual has been found using the subroutine <i>KSPGetResidualNorm. </i>The following is how the residual is varying for different maximum iterations.</div><div style="font-size:12.8px"><i><img src="cid:ii_14faee5180e1e613" alt="Inline image 2" width="544" height="328" class="" tabindex="0"></i></div><div style="font-size:12.8px"><i><br></i></div><div style="font-size:12.8px">With such being the case, I have the following doubts to clarify:</div><div style="font-size:12.8px"><ul><li style="margin-left:15px">Are the settings used by me for the KSP solver adequate enough? Or am I missing something?</li><li style="margin-left:15px">What could be reasons for my KSP solver to not converge below the permissible tolerance? </li><li style="margin-left:15px">For a linear system of given size, how can one determine the number of maximum iterations that should be set for the KSP solver? Is there a thumb rule?<br></li></ul><div><br></div></div><div style="font-size:12.8px">Regards,</div><div style="font-size:12.8px">Rachit Prasad</div></div>