TSPseudoSetTimeStep
Sets the user-defined routine to be called at each pseudo-timestep to update the timestep.
Synopsis
int TSPseudoSetTimeStep(TS ts,int (*dt)(TS,double*,void*),void* ctx)
Input Parameters
ts -timestep context
dt -function to compute timestep
ctx -[optional] user-defined context for private data
required by the function (may be PETSC_NULL)
Collective on
TS
Calling sequence of func
func (TS ts,double *newdt,void *ctx); -
newdt -the newly computed timestep
ctx -[optional] timestep context
Notes
The routine set here will be called by TSPseudoComputeTimeStep()
during the timestepping process.
Keywords
timestep, pseudo, set
See Also
TSPseudoDefaultTimeStep(), TSPseudoComputeTimeStep()
Location: src/ts/impls/pseudo/posindep.c
Time Stepping
Table of Contents