#include "petscksp.h" PetscErrorCode PCApplyRichardson(PC pc,Vec b,Vec y,Vec w,PetscReal rtol,PetscReal abstol, PetscReal dtol,PetscInt its,PetscBool guesszero,PetscInt *outits,PCRichardsonConvergedReason *reason)Collective on PC
pc | - the preconditioner context | |
b | - the right hand side | |
w | - one work vector | |
rtol | - relative decrease in residual norm convergence criteria | |
abstol | - absolute residual norm convergence criteria | |
dtol | - divergence residual norm increase criteria | |
its | - the number of iterations to apply. | |
guesszero | - if the input x contains nonzero initial guess |
outits | - number of iterations actually used (for SOR this always equals its) | |
reason | - the reason the apply terminated | |
y | - the solution (also contains initial guess if guesszero is PETSC_FALSE |
Except for the multigrid PC this routine ignores the convergence tolerances and always runs for the number of iterations
Level:developer
Location:src/ksp/pc/interface/precon.c
Index of all PC routines
Table of Contents for all manual pages
Index of all manual pages