TSDiscGradGetFormulation#
Get the construction method for S, F, and grad F from the formulation u_t = S grad F for TSDISCGRAD
Synopsis#
#include "petscts.h"
PetscErrorCode TSDiscGradGetFormulation(TS ts, PetscErrorCode (**Sfunc)(TS, PetscReal, Vec, Mat, void *), PetscErrorCode (**Ffunc)(TS, PetscReal, Vec, PetscScalar *, void *), PetscErrorCode (**Gfunc)(TS, PetscReal, Vec, Vec, void *), void *ctx)
Not Collective
Input Parameter#
ts - timestepping context
Output Parameters#
Sfunc - constructor for the S matrix from the formulation
Ffunc - functional F from the formulation
Gfunc - constructor for the gradient of F from the formulation
ctx - the user context
Calling sequence of Sfunc
#
PetscErrorCode Sfunc(TS ts, PetscReal time, Vec u, Mat S, void *ctx)
Calling sequence of Ffunc
#
PetscErrorCode Ffunc(TS ts, PetscReal time, Vec u, PetscScalar *F, void *ctx)
Calling sequence of Gfunc
#
PetscErrorCode Gfunc(TS ts, PetscReal time, Vec u, Vec G, void *ctx)
See Also#
TS: Scalable ODE and DAE Solvers, TS
, TSDISCGRAD
, TSDiscGradSetFormulation()
Level#
intermediate
Location#
Implementations#
Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages