KSPSetPreSolve#
Sets a function that is called at the beginning of each KSPSolve()
Synopsis#
#include "petscksp.h"
PetscErrorCode KSPSetPreSolve(KSP ksp, PetscErrorCode (*presolve)(KSP ksp, Vec rhs, Vec x, void *ctx), void *ctx)
Logically Collective
Input Parameters#
ksp - the solver object
presolve - the function to call before the solve
ctx - any context needed by the function
Calling sequence of presolve
#
ksp - the
KSP
contextrhs - the right-hand side vector
x - the solution vector
ctx - optional user-provided context
See Also#
KSP: Linear System Solvers, KSPSetUp()
, KSPSolve()
, KSPDestroy()
, KSP
, KSPSetPostSolve()
, 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