TSSetTimeError — PETSc 3.21.4 documentation

Skip to main content
`Ctrl`+`K`

# TSSetTimeError

Sets the estimated error vector, if the chosen `TSType` has an error estimation functionality. This can be used to restart such a time integrator with a given error vector.

## Synopsis

    #include "petscts.h"
    PetscErrorCode TSSetTimeError(TS ts, Vec v)

Not Collective, but v returned is parallel if ts is parallel

## Input Parameters

- ts - the `TS` context obtained from `TSCreate()` (input parameter).

- v - the vector containing the error (same size as the solution).

## See Also

TS: Scalable ODE and DAE Solvers, `TS`, `TSSetSolution()`, `TSGetTimeError()`

## Level

intermediate

## Location

src/ts/interface/ts.c

## Implementations

TSSetTimeError_GLEE() in src/ts/impls/glee/glee.c

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