petsc-3.7.1 2016-05-15
Report Typos and Errors

SNESNGMRESSetRestartType

Sets the restart type for SNESNGMRES.

Synopsis

#include "petscsnes.h" 
PetscErrorCode SNESNGMRESSetRestartType(SNES snes,SNESNGMRESRestartType rtype)
Logically Collective on SNES Many br

Input Parameters

snes - the iterative context Many br
rtype - restart type Many br

Options Database

-snes_ngmres_restart_type<difference,periodic,none> - set the restart type Many br
-snes_ngmres_restart[30] - sets the number of iterations before restart for periodic Many br

Many br

SNESNGMRESRestartTypes

SNES_NGMRES_RESTART_NONE - never restart Many br
SNES_NGMRES_RESTART_DIFFERENCE - restart based upon difference criteria Many br
SNES_NGMRES_RESTART_PERIODIC - restart after a fixed number of iterations Many br

Notes

The default line search used is the L2 line search and it requires two additional function evaluations. Many br

Keywords

SNES, SNESNGMRES, restart, type, set SNESLineSearch

Level:intermediate
Location:
src/snes/impls/ngmres/snesngmres.c
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages