#include "petscpc.h" PetscErrorCode PETSCKSP_DLLEXPORT PCShellSetApplyRichardson(PC pc,PetscErrorCode (*apply)(void*,Vec,Vec,Vec,PetscReal,PetscReal,PetscReal,PetscInt))Collective on PC
pc | - the preconditioner context | |
apply | - the application-provided preconditioning routine |
PetscErrorCode apply (void *ptr,Vec b,Vec x,Vec r,PetscReal rtol,PetscReal abstol,PetscReal dtol,PetscInt maxits)
ptr | - the application context | |
b | - right-hand-side | |
x | - current iterate | |
r | - work space | |
rtol | - relative tolerance of residual norm to stop at | |
abstol | - absolute tolerance of residual norm to stop at | |
dtol | - if residual norm increases by this factor than return | |
maxits | - number of iterations to run |
Level:developer
Location:src/ksp/pc/impls/shell/shellpc.c
Index of all PC routines
Table of Contents for all manual pages
Index of all manual pages