SNESNGMRESSetAdaptiveParameters#
Sets the parameters of the adaptive window of SNESNGMRES
Synopsis#
#include "petscsnes.h"
PetscErrorCode SNESNGMRESSetAdaptiveParameters(SNES snes, PetscInt m, PetscReal tol)
Logically Collective
Input Parameters#
snes - the
SNEScontextm - the initial number of stored solutions in the window, or
PETSC_CURRENTto keep the current valuetol - the tolerance on \(| \theta_{k+1} - \| F(x_{k+1}) \| / \| F(x_k) \| |\) below which the window grows by one, or
PETSC_CURRENTto keep the current value
Options Database Keys#
-snes_ngmres_adaptive_m m - the initial number of stored solutions, default 4
-snes_ngmres_adaptive_tol tol - the tolerance, default 1e-3
Note#
The number of stored solutions is one more than the depth \(m\) of [HRX26], so the default corresponds to the depth 3.
References#
Yunhui He, Leo G. Rebholz, and M. Xiao. NGMRES convergence analysis and proof of acceleration for contractive and noncontractive iterations. arXiv preprint arXiv:2607.14268, 2026. URL: https://arxiv.org/abs/2607.14268.
See Also#
SNES: Nonlinear Solvers, SNES, SNESNGMRES, SNESNGMRESSetAdaptive(), SNESNGMRESGetAdaptive()
Level#
intermediate
Location#
Implementations#
SNESNGMRESSetAdaptiveParameters_NGMRES() in src/snes/impls/ngmres/snesngmres.c
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages