KSPBuildResidual

Builds the residual in a vector provided.

Synopsis

int KSPBuildResidual(KSP ctx, Vec t, Vec v, Vec *V)
Collective on KSP

Input Parameter

ctx -iterative context obtained from KSPCreate()

Output Parameters

v - optional location to stash residual. If v is not provided, then a location is generated.
t - work vector. If not provided then one is generated.
V - the residual

Notes

Regardless of whether or not v is provided, the residual isreturned in V.

Keywords

KSP, build, residual

See Also

KSPBuildSolution()

Location: src/ksp/interface/itfunc.c
KSP Index
Table of Contents