KSPBuildSolutionDefault#

Default code to build/move the solution.

Synopsis#

#include "petscksp.h" 
PetscErrorCode KSPBuildSolutionDefault(KSP ksp, Vec v, Vec *V)

Collective

Input Parameters#

  • ksp - iterative context

  • v - pointer to the user’s vector

Output Parameter#

  • V - pointer to a vector containing the solution

Note#

Some KSP methods such as KSPGMRES do not compute the explicit solution at each iteration, this routine takes the information they have computed during the previous iterations and uses it to compute the explicit solution

Developer Note#

This is PETSC_EXTERN because it may be used by user written plugin KSPType implementations

See Also#

KSP: Linear System Solvers, KSP, KSPGetSolution(), KSPBuildResidualDefault()

Level#

advanced

Location#

src/ksp/ksp/interface/iterativ.c


Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages