<div dir="ltr">Dear PETSc developers:<div>Hi,</div><div><p style="margin:0px;white-space:pre-wrap">I've been using -snes_mf_operator and I've customized a precondition matrix to solve my problem.I have two questions about the residuals of linear steps(KSP residual).</p><p style="margin:0px;white-space:pre-wrap"><br></p><p style="margin:0px;white-space:pre-wrap">1.Since I'm using a matrix-free method, how do we get KSP residuals in PETSc? </p><p style="margin:0px;white-space:pre-wrap">                                         r_m = b - A*x_m</p><p style="margin:0px;white-space:pre-wrap"> Is finite difference used to approximate "A*x_m" ?</p><p style="margin:0px;white-space:pre-wrap"><br></p><p style="margin:0px;white-space:pre-wrap">2.What is the difference between instruction ' -ksp_monitor ' and ' -ksp_monitor_true_residual ' in how they are calculated? </p><p style="margin:0px;white-space:pre-wrap"><br></p><p style="margin:0px;white-space:pre-wrap">Thanks,</p><p style="margin:0px;white-space:pre-wrap">Yingjie</p><p style="margin:0px;white-space:pre-wrap"><br></p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;text-align:justify;font-size:10.5pt;font-family:等线"><span lang="EN-US"></span></p><p style="margin:0px;white-space:pre-wrap"> <br></p></div></div>