TSGetApplicationContext#

Gets the user-defined context for the timestepper that was set with TSSetApplicationContext()

Synopsis#

#include "petscts.h"  
PetscErrorCode TSGetApplicationContext(TS ts, PetscCtxRt ctx)

Not Collective

Input Parameter#

Output Parameter#

  • ctx - a pointer to the user context

Fortran Notes#

This only works when the context is a Fortran derived type or a PetscObject. Declare ctx with

  type(tUsertype), pointer :: ctx

See Also#

TS: Scalable ODE and DAE Solvers, TS, TSSetApplicationContext()

Level#

intermediate

Location#

src/ts/interface/ts.c

Examples#

src/ts/tutorials/ex42.c
src/ts/tutorials/ex77.c
src/ts/tutorials/ex30.c
src/ts/tutorials/ex48.c


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