TSSetMaxStepRejections#

Sets the maximum number of step rejections allowed in a single time-step attempt before a time step fails in TSSolve() with TS_DIVERGED_STEP_REJECTED

Synopsis#

#include "petscts.h"  
PetscErrorCode TSSetMaxStepRejections(TS ts, PetscInt rejects)

Not Collective

Input Parameters#

  • ts - TS context

  • rejects - maximum number of rejected steps, pass PETSC_UNLIMITED for unlimited

Options Database Key#

  • -ts_max_step_rejections - Maximum number of step rejections before a step fails

Developer Note#

The options database name is incorrect.

See Also#

TS: Scalable ODE and DAE Solvers, TS, SNES, TSGetSNESIterations(), TSGetKSPIterations(), TSSetMaxSNESFailures(), TSGetStepRejections(), TSGetSNESFailures(), TSSetErrorIfStepFails(), TSGetConvergedReason(), TSSolve(), TS_DIVERGED_STEP_REJECTED

Level#

intermediate

Location#

src/ts/interface/ts.c

Examples#

src/ts/tutorials/ex8.c
src/ts/tutorials/ex42.c


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