KSPCGSetObjectiveTarget#
Sets the target value for the quadratic model reduction when the solver is used inside SNESNEWTONTR
Synopsis#
#include "petscksp.h"
PetscErrorCode KSPCGSetObjectiveTarget(KSP ksp, PetscReal obj)
Logically Collective
Input Parameters#
ksp - the iterative context
obj - the objective value (0 is the default)
Note#
The KSPSolve()
will stop when the current objective function
is smaller than obj
if obj
is negative.
Otherwise the test is ignored.
See Also#
KSP: Linear System Solvers, KSP
, KSPCG
, KSPNASH
, KSPSTCG
, KSPGLTR
, SNESNEWTONTR
Level#
advanced
Location#
Implementations#
KSPCGSetObjectiveTarget_CG() in src/ksp/ksp/impls/cg/cg.c
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages