#include "petscksp.h" PetscErrorCode KSPInitialResidual(KSP ksp,Vec vsoln,Vec vt1,Vec vt2,Vec vres,Vec vb)Collective on ksp
vsoln | - solution to use in computing residual | |
vt1, vt2 | - temporary work vectors | |
vb | - right-hand-side vector |
vres | - calculated residual |
A x = bwill be used with a preconditioner, C, such that the actual problem is either
AC u = b (right preconditioning) or
CA x = Cb (left preconditioning).This means that the calculated residual will be scaled and/or preconditioned; the true residual
b-Axis returned in the vt2 temporary.