SNESParametersInitialize#
Sets the base defaults for parameters in snes, updating a parameter’s current value when it matches its previously recorded default.
Synopsis#
#include "petscsnes.h"
#include "petscsnes.h"
PetscErrorCode SNESParametersInitialize(SNES snes)
Logically collective
Input Parameter#
snes - the
SNESobject
Notes#
The base defaults are the non-type-specific values established when the SNES is created. A SNESType constructor may subsequently replace them with type-specific defaults.
Developer Notes#
SNESCreate() calls this routine to establish the base defaults. SNESSetType() calls it before constructing a new SNESType, so the recorded defaults associated with the previous type are replaced before the new type installs its own defaults.
Default tracking is based on value equality, not on whether a setter was called. Consequently, an explicitly assigned value that equals the recorded default may be updated when the type changes.
See Also#
SNES: Nonlinear Solvers, SNES, SNESSolve(), SNESDestroy(), SNESSetLagPreconditioner(), SNESSetLagJacobian(),
PetscObjectParameterSetDefault()
Level#
developer
Location#
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages