:orphan: # KSPCGGetNormD Got norm of the direction when the solver is used inside `SNESNEWTONTR` ## Synopsis ``` #include "petscksp.h" PetscErrorCode KSPCGGetNormD(KSP ksp, PetscReal *norm_d) ``` Collective ## Input Parameters - ***ksp -*** the iterative context - ***norm_d -*** the norm of the direction ## See Also [](ch_ksp), `KSP`, `KSPCG`, `KSPNASH`, `KSPSTCG`, `KSPGLTR` ## Level advanced ## Location src/ksp/ksp/impls/cg/cgtype.c ## Implementations KSPCGGetNormD_GLTR in src/ksp/ksp/impls/cg/gltr/gltr.c
KSPCGGetNormD_NASH in src/ksp/ksp/impls/cg/nash/nash.c
KSPCGGetNormD_STCG in src/ksp/ksp/impls/cg/stcg/stcg.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/ksp/impls/cg/cgtype.c) [Index of all KSP routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)