KSPSetRhs
Sets the right-hand-side vector for the linear system to be solved.
Synopsis
#include "petscksp.h"
int KSPSetRhs(KSP ksp,Vec b)
Collective on KSP and Vec
Input Parameters
| ksp | - iterative context obtained from KSPCreate()
|
| b | - right-hand-side vector
|
Keywords
KSP, set, right-hand-side, rhs
See Also
KSPGetRhs(), KSPSetSolution(), 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