petsc-3.13.6 2020-09-29
Report Typos and Errors

SNESSetCountersReset

Sets whether or not the counters for linear iterations and function evaluations are reset every time SNESSolve() is called.

Synopsis

#include "petscsnes.h"  
PetscErrorCode  SNESSetCountersReset(SNES snes,PetscBool reset)
Logically Collective on SNES

Input Parameter

snes - SNES context
reset - whether to reset the counters or not

Notes

This defaults to PETSC_TRUE

See Also

SNESGetNumberFunctionEvals(), SNESGetLinearSolveIterations(), SNESGetNPC()

Level

developer

Location

src/snes/interface/snes.c

Examples

src/snes/tutorials/ex5.c.html

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