KSPSetSolution

Sets the location of the solution for the linear system to be solved.

Synopsis

#include "petscksp.h" 
int KSPSetSolution(KSP ksp,Vec x)
Collective on KSP and Vec

Input Parameters

ksp - iterative context obtained from KSPCreate()
x - solution vector

Keywords

KSP, set, solution

See Also

KSPSetRhs(), KSPGetSolution(), KSPSolve()

Level:developer
Location:
src/ksp/ksp/interface/itfunc.c
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/mat/examples/tutorials/ex3.c.html
src/ksp/pc/examples/tutorials/ex1.c.html
src/ksp/pc/examples/tutorials/ex2.c.html
src/ksp/examples/tutorials/ex1.c.html
src/ksp/examples/tutorials/ex2.c.html
src/ksp/examples/tutorials/ex3.c.html
src/ksp/examples/tutorials/ex4.c.html
src/ksp/examples/tutorials/ex5.c.html
src/ksp/examples/tutorials/ex7.c.html
src/ksp/examples/tutorials/ex8.c.html
src/ksp/examples/tutorials/ex9.c.html