SNES_NORM_INITIAL_ONLY — PETSc 3.25.0 documentation

Skip to main content
`Ctrl`+`K`

# SNES_NORM_INITIAL_ONLY

Compute the function and its L2 at iteration 0, but do not update it.

## Notes

This method is useful in composed methods, when a true solution might actually be found before `SNESSolve()` is called. This option enables the solve to abort on the zeroth iteration if this is the case.

For solvers that require the computation of the L2 norm of the function as part of the method, this merely cancels the norm computation at the last iteration (if possible).

## See Also

SNES: Nonlinear Solvers, `SNESNormSchedule`, `SNES`, `SNESSetNormSchedule()`, `SNES_NORM_FINAL_ONLY`, `SNES_NORM_INITIAL_FINAL_ONLY`

## Level

advanced

## Location

include/petscsnes.h

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