SNESNGMRESSetAdaptiveParameters#

Sets the parameters of the adaptive window of SNESNGMRES

Synopsis#

Logically Collective

Input Parameters#

  • snes - the SNES context

  • m - the initial number of stored solutions in the window, or PETSC_CURRENT to keep the current value

  • tol - the tolerance on \(| \theta_{k+1} - \| F(x_{k+1}) \| / \| F(x_k) \| |\) below which the window grows by one, or PETSC_CURRENT to 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#

[HRX26]

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#

src/snes/impls/ngmres/snesngmres.c

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