TSAlpha2PredictorFn — PETSc 3.25.2 documentation

Skip to main content
`Ctrl`+`K`

# TSAlpha2PredictorFn

A callback to set the predictor (i.e., the initial guess for the nonlinear solver) in a second-order generalized-alpha time integrator.

## Synopsis

    #include <petscts.h>
    PETSC_EXTERN_TYPEDEF typedef PetscErrorCode TSAlpha2PredictorFn(TS ts, Vec X0, Vec V0, Vec A0, Vec X1, PetscCtx ctx);

## Calling Sequence

- ts - the `TS` context obtained from `TSCreate()`

- X0 - the previous time step’s state vector

- V0 - the previous time step’s first derivative of the state vector

- A0 - the previous time step’s second derivative of the state vector

- X1 - the vector into which the initial guess for the current time step will be written

- ctx - [optional] user-defined context for the predictor evaluation routine (may be `NULL`)

## Note

The deprecated `TSAlpha2Predictor` still works as a replacement for `TSAlpha2PredictorFn` *.

## See Also

TS: Scalable ODE and DAE Solvers, `TS`, `TSAlpha2SetPredictor()`

## Level

intermediate

## Location

include/petscts.h

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