#include "petscksp.h" PetscErrorCode KSPFGMRESModifyPCKSP(KSP ksp,PetscInt total_its,PetscInt loc_its,PetscReal res_norm,void *dummy)
|ksp||- the ksp context being used.|
|total_its||- the total number of FGMRES iterations that have occurred.|
|loc_its||- the number of FGMRES iterations since last restart.|
|res_norm||- the current residual norm.|
|dummy||- context, not used here|
Contributed by Allison Baker
This could be used as a template!