petsc-3.11.4 2019-09-28
Report Typos and Errors

TSRestartStep

Flags the solver to restart the next step

Synopsis

#include "petscts.h"  
PetscErrorCode TSRestartStep(TS ts)
Collective on TS

Input Parameter

ts -the TS context obtained from TSCreate()

Notes

Multistep methods like BDF or Runge-Kutta methods with FSAL property require restarting the solver in the event of discontinuities. These discontinuities may be introduced as a consequence of explicitly modifications to the solution vector (which PETSc attempts to detect and handle) or problem coefficients (which PETSc is not able to detect). For the sake of correctness and maximum safety, users are expected to call TSRestart() whenever they introduce discontinuities in callback routines (e.g. prestep and poststep routines, or implicit/rhs function routines with discontinuous source terms).

Keywords

TS, timestep, restart

See Also

TSSolve(), TSSetPreStep(), TSSetPostStep()

Level

advanced

Location

src/ts/interface/ts.c

Examples

src/ts/examples/tutorials/ex40.c.html
src/ts/examples/tutorials/ex41.c.html

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