#include "petscksp.h" PetscErrorCode KSPBuildResidual(KSP ksp,Vec t,Vec v,Vec *V)Collective on KSP
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 |