#include "petscksp.h" PetscErrorCode KSPSetPreSolve(KSP ksp,PetscErrorCode (*presolve)(KSP,Vec,Vec,void*),void *prectx)Logically Collective on KSP
ksp | - the solver object | |
presolve | - the function to call before the solve | |
prectx | - 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 |