TSPseudoSetVerifyTimeStep

Sets a user-defined routine to verify the quality of the last timestep.

Synopsis

int TSPseudoSetVerifyTimeStep(TS ts,int (*dt)(TS,Vec,void*,double*,int*),void* ctx)

Input Parameters

ts -timestep context
dt -user-defined function to verify timestep
ctx -[optional] user-defined context for private data for the timestep verification routine (may be PETSC_NULL)

Collective on TS

Calling sequence of func

func (TS ts,Vec update,void *ctx,double *newdt,int *flag); -
update -latest solution vector
ctx -[optional] timestep context
newdt -the timestep to use for the next step
flag -flag indicating whether the last time step was acceptable

Notes

The routine set here will be called by TSPseudoVerifyTimeStep() during the timestepping process.

Keywords

timestep, pseudo, set, verify

See Also

TSPseudoDefaultVerifyTimeStep(), TSPseudoVerifyTimeStep()

Location: src/ts/impls/pseudo/posindep.c
Time Stepping
Table of Contents