SNESSetFunctionType#

Sets the SNESFunctionType of the SNES method.

Synopsis#

#include "petscsnes.h"  
PetscErrorCode SNESSetFunctionType(SNES snes, SNESFunctionType type)

Logically Collective

Input Parameters#

  • snes - the SNES context

  • type - the function type

Notes#

Possible values of the function type

Different SNESTypes use this value in different ways

See Also#

SNES: Nonlinear Solvers, SNES, SNESFunctionType, SNESGetNormSchedule(), SNESComputeFunction(), VecNorm(), SNESSetFunction(), SNESSetInitialFunction(), SNESNormSchedule

Level#

developer

Location#

src/snes/interface/snes.c


Edit on GitLab

Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages