#include "petscsnes.h" PetscErrorCode SNESNCGSetType(SNES snes, SNESNCGType btype)Logically Collective on SNES
snes | - the iterative context | |
btype | - update type |
-snes_ncg_type <prp,fr,hs,dy,cd> | - strategy for selecting algorithm for computing beta |
SNES_NCG_FR | - Fletcher-Reeves update | |
SNES_NCG_PRP | - Polak-Ribiere-Polyak update | |
SNES_NCG_HS | - Hestenes-Steifel update | |
SNES_NCG_DY | - Dai-Yuan update | |
SNES_NCG_CD | - Conjugate Descent update |
It is not clear what "generalized search directions" means, does it mean use with a nonlinear preconditioner, that is using -npc_snes_type <type>, SNESSetNPC(), or SNESGetNPC()?