[petsc-users] Problem about Residual evaluation

Zou, Ling lzou at anl.gov
Mon Apr 1 09:54:46 CDT 2019


For question 2, there are some discussions in PETSc’s manual section 4.3 and 4.3.3.
https://www.mcs.anl.gov/petsc/petsc-current/docs/manual.pdf

-Ling

From: petsc-users <petsc-users-bounces at mcs.anl.gov> on behalf of Yingjie Wu via petsc-users <petsc-users at mcs.anl.gov>
Reply-To: Yingjie Wu <yjwu16 at gmail.com>
Date: Monday, April 1, 2019 at 9:22 AM
To: "petsc-users at mcs.anl.gov" <petsc-users at mcs.anl.gov>
Subject: [petsc-users] Problem about Residual evaluation

Dear PETSc developers:
Hi,

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).



1.Since I'm using a matrix-free method, how do we get KSP residuals in PETSc?

r_m = b - A*x_m

Is finite difference used to approximate "A*x_m" ?



2.What is the difference between instruction ' -ksp_monitor ' and ' -ksp_monitor_true_residual ' in how they are calculated?



Thanks,

Yingjie




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190401/3737220c/attachment.html>


More information about the petsc-users mailing list