KSPSetPostSolve#
Sets a function that is called at the end of each KSPSolve() (whether it converges or not). Used in conjunction with KSPSetPreSolve().
Synopsis#
#include "petscksp.h" 
PetscErrorCode KSPSetPostSolve(KSP ksp, PetscErrorCode (*postsolve)(KSP ksp, Vec rhs, Vec x, void *ctx), void *ctx)
Logically Collective
Input Parameters#
- ksp - the solver object 
- postsolve - the function to call after the solve 
- ctx - an optional context needed by the function 
Calling sequence of postsolve#
- ksp - the - KSPcontext
- rhs - the right-hand side vector 
- x - the solution vector 
- ctx - optional user-provided context 
See Also#
KSP: Linear System Solvers, KSPSetUp(), KSPSolve(), KSPDestroy(), KSP, KSPSetPreSolve(), PCEISENSTAT
Level#
developer
Location#
src/ksp/ksp/interface/itcreate.c
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages