#include "petscksp.h" PetscErrorCode KSPSetPostSolve(KSP ksp,PetscErrorCode (*postsolve)(KSP,Vec,Vec,void*),void *postctx)Logically Collective on ksp
ksp | - the solver object | |
postsolve | - the function to call after the solve | |
postctx | - any context needed by the function |
func(KSP ksp,Vec rhs,Vec x,void *ctx)
ksp | - the KSP context | |
rhs | - the right-hand side vector | |
x | - the solution vector | |
ctx | - optional user-provided context |