TSAdaptDestroy — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# TSAdaptDestroy

Destroys a `TSAdapt` context

## Synopsis

    #include "petscts.h"
    PetscErrorCode TSAdaptDestroy(TSAdapt *adapt)

Collective

## Input Parameter

- adapt - the `TSAdapt` context obtained from `TSGetAdapt()` or `TSAdaptCreate()`

## See Also

TS: Scalable ODE and DAE Solvers, Error control via variable time-stepping, `TSAdapt`, `TSAdaptCreate()`, `TSGetAdapt()`

## Level

intermediate

## Location

src/ts/adapt/interface/tsadapt.c

## Implementations

TSAdaptDestroy_DSP() in src/ts/adapt/impls/dsp/adaptdsp.c
TSAdaptDestroy_GLEE() in src/ts/adapt/impls/glee/adaptglee.c
TSAdaptDestroy_History() in src/ts/adapt/impls/history/adapthist.c

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