#include "petscksp.h" PetscErrorCode KSPMonitorDynamicTolerance(KSP ksp,PetscInt its,PetscReal fnorm,void *dummy)Collective on KSP
ksp | - iterative context | |
n | - iteration number (not used) | |
fnorm | - the current residual norm | |
dummy | - some context as a C struct. fields: coef: a scaling coefficient. default 1.0. can be passed through -sub_ksp_dynamic_tolerance_param bnrm: norm of the right-hand side. store it to avoid repeated calculation |