#include "petscsnes.h" PetscErrorCode SNESNGMRESSetRestartType(SNES snes,SNESNGMRESRestartType rtype)Logically Collective on SNES
snes | - the iterative context | |
rtype | - restart type |
-snes_ngmres_restart_type<difference,periodic,none> | - set the restart type | |
-snes_ngmres_restart[30] | - sets the number of iterations before restart for periodic |
SNES_NGMRES_RESTART_NONE | - never restart | |
SNES_NGMRES_RESTART_DIFFERENCE | - restart based upon difference criteria | |
SNES_NGMRES_RESTART_PERIODIC | - restart after a fixed number of iterations |