TSDiscGradRestoreX0AndXdot#

Restores the last solution and current time derivative held inside the TS

Synopsis#

#include "petscts.h"   
PetscErrorCode TSDiscGradRestoreX0AndXdot(TS ts, DM dm, Vec *X0, Vec *Xdot)

Collective

Input Parameters#

  • ts - The TS

  • dm - The DM, or NULL to use the embedded DM

  • X0 - The solution from the last timestep

  • Xdot - The current solution time derivative

See Also#

TS: Scalable ODE and DAE Solvers, TSDISCGRAD, TSDiscGradGetX0AndXdot()

Level#

advanced

Location#

src/ts/impls/implicit/discgrad/tsdiscgrad.c


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