SNESNGMRESSetSelectType#
Sets the selection type for SNESNGMRES. This determines how the candidate solution and combined solution are used to create the next iterate.
Synopsis#
#include "petscsnes.h"
PetscErrorCode SNESNGMRESSetSelectType(SNES snes, SNESNGMRESSelectType stype)
Logically Collective
Input Parameters#
snes - the iterative context
stype - selection type
Options Database Key#
-snes_ngmres_select_type<difference,none,linesearch> - select type
SNESNGMRESSelectTypes#
SNES_NGMRES_SELECT_NONE- choose the combined solution all the timeSNES_NGMRES_SELECT_DIFFERENCE- choose based upon the selection criteriaSNES_NGMRES_SELECT_LINESEARCH- choose based upon line search combination
Note#
The default line search used is the SNESLINESEARCHL2 line search and it requires two additional function evaluations.
See Also#
SNESNGMRESSelectType(), SNES_NGMRES_SELECT_NONE, SNES_NGMRES_SELECT_DIFFERENCE, SNES_NGMRES_SELECT_LINESEARCH
Level#
intermediate
Location#
Implementations#
SNESNGMRESSetSelectType_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